Skip to content

Commit

Permalink
fix: release tag CLI (#1869)
Browse files Browse the repository at this point in the history
CLI needs to be a separate step for the release.yaml, as we dont store
it on the github registry. regular makefile target pullls tags and
pushes from both
Ref: SRX-6SQ4UE
  • Loading branch information
miguel-crespo-fdc authored Aug 13, 2024
1 parent 95bfd38 commit 312834b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ jobs:
make tag-release-images RELEASE_IMAGE_TAG=v$RELEASE_IMAGE_VERSION
env:
RELEASE_IMAGE_VERSION: ${{ steps.new-semrel-version.outputs.version }}
- name: Re-tag CLI service image with release version for google docker registry
run: |
echo 'If this step fails, ensure that the main github action is done. We rely on it to get the docker images.'
git fetch --tags # this should have been done by the checkout action before.
make tag-cli-release-image RELEASE_IMAGE_TAG=v$RELEASE_IMAGE_VERSION
env:
RELEASE_IMAGE_VERSION: ${{ steps.new-semrel-version.outputs.version }}
- name: Re-tag service images with release version for github docker registry
run: |
make tag-release-images RELEASE_IMAGE_TAG=v$RELEASE_IMAGE_VERSION DOCKER_REGISTRY_URI=ghcr.io/freiheit-com/kuberpult
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ push-service-image/%: tag-service-image/%
docker push $(DOCKER_REGISTRY_URI)/$*:$(RELEASE_IMAGE_TAG)-datadog

.PHONY: tag-release-images
tag-release-images: $(foreach i,$(SERVICE_IMAGES),push-service-image/$i) tag-cli-release-image
tag-release-images: $(foreach i,$(SERVICE_IMAGES),push-service-image/$i)
true

# CLI is only stored in gcp docker registry
Expand Down

0 comments on commit 312834b

Please sign in to comment.