diff --git a/cicd/docker-install.yml b/cicd/docker-install.yaml similarity index 100% rename from cicd/docker-install.yml rename to cicd/docker-install.yaml diff --git a/cicd/earthly-setup.sh b/cicd/earthly-setup.sh index de6e313c..0b8321ce 100755 --- a/cicd/earthly-setup.sh +++ b/cicd/earthly-setup.sh @@ -1,6 +1,9 @@ #!/usr/bin/env bash -wget https://github.com/earthly/earthly/releases/download/v0.6.28/earthly-linux-amd64 \ - -O /usr/local/bin/earthly -chmod +x /usr/local/bin/earthly -/usr/local/bin/earthly bootstrap +docker run -d --restart always \ + --privileged \ + --name earthly-buildkit \ + -p 8372:8372 \ + -t -v earthly-tmp:/tmp/earthly:rw \ + --env BUILDKIT_TCP_TRANSPORT_ENABLED=true \ + earthly/buildkitd:v0.6.28 diff --git a/cicd/runner.tf b/cicd/runner.tf index ab21b9f2..239c07f5 100644 --- a/cicd/runner.tf +++ b/cicd/runner.tf @@ -28,7 +28,7 @@ ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -u root \ -i '${self.ipv4_address},' \ --private-key ${var.pvt_key} \ -e "regkey=${var.reg_key} ci_server_url=${var.ci_server_url} runner_name=${var.runner_name}" \ - docker-install.yml + docker-install.yaml EOF } }