Skip to content

Commit

Permalink
try #6
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkermichael committed Oct 13, 2022
1 parent 3fbf9e9 commit eae94bb
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions control-plane/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit eae94bb

Please sign in to comment.