diff --git a/control-plane/Makefile b/control-plane/Makefile index 300da32fbb..7154b70c68 100644 --- a/control-plane/Makefile +++ b/control-plane/Makefile @@ -60,14 +60,21 @@ ci.dev-docker-github: --platform linux/amd64,linux/arm64 \ --target=dev \ --push \ - --label COMMIT_SHA=$(CIRCLE_SHA1) \ - --label PULL_REQUEST=$(CIRCLE_PULL_REQUEST) \ - --label CIRCLE_BUILD_URL=$(CIRCLE_BUILD_URL) \ + --label COMMIT_SHA=$(GITHUB_SHA) \ + --label PULL_REQUEST=$(GITHIB_PULL_REQUEST) \ + --label GITHUB_BUILD_URL=$(GITHUB_SERVER_URL)/$(GITHUB_REPOSITORY)/actions/runs/$(GITHUB_RUN_ID) \ $(CI_DEV_DOCKER_WORKDIR) -f $(CURDIR)/Dockerfile @echo "Pushed dev image to: $(CI_DEV_DOCKER_NAMESPACE)/$(CI_DEV_DOCKER_IMAGE_NAME):$(GIT_COMMIT)" ifeq ($(GITHUB_REF_NAME), main) - @docker tag $(CI_DEV_DOCKER_NAMESPACE)/$(CI_DEV_DOCKER_IMAGE_NAME):$(GIT_COMMIT) $(CI_DEV_DOCKER_NAMESPACE)/$(CI_DEV_DOCKER_IMAGE_NAME):latest - @docker push $(CI_DEV_DOCKER_NAMESPACE)/$(CI_DEV_DOCKER_IMAGE_NAME):latest + @docker buildx build -t '$(CI_DEV_DOCKER_NAMESPACE)/$(CI_DEV_DOCKER_IMAGE_NAME):latest' \ + --platform linux/amd64,linux/arm64 \ + --target=dev \ + --push \ + --label COMMIT_SHA=$(GITHUB_SHA) \ + --label PULL_REQUEST=$(GITHIB_PULL_REQUEST) \ + --label GITHUB_BUILD_URL=$(GITHUB_SERVER_URL)/$(GITHUB_REPOSITORY)/actions/runs/$(GITHUB_RUN_ID) \ + $(CI_DEV_DOCKER_WORKDIR) -f $(CURDIR)/Dockerfile + @echo "Pushed dev image to: $(CI_DEV_DOCKER_NAMESPACE)/$(CI_DEV_DOCKER_IMAGE_NAME):latest" endif .PHONY: ci.dev-tree ci.dev-docker ci.dev-docker-github