Skip to content

Commit

Permalink
improve docker images by tagging latest when relevant
Browse files Browse the repository at this point in the history
  • Loading branch information
aantn committed Jun 12, 2024
1 parent 1d0e739 commit a1df110
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build-docker-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,17 @@ jobs:
build-args: |
BUILDKIT_INLINE_CACHE=1
# Note: this ignores the "Set as latest release" checkbox in the GitHub UI
# it isn't possible to check whether that was set or not
# so if you do not want to override the "latest" tag, you should mark the release as a prerelease or a draft
# for prereleases and drafts we don't tag latest
- name: Tag and push Docker image as latest if applicable
if: ${{ github.event.release.prerelease == false && github.event.release.draft == false }}
run: |
docker pull us-central1-docker.pkg.dev/genuine-flight-317411/devel/holmes:${{ github.ref_name }}
docker tag us-central1-docker.pkg.dev/genuine-flight-317411/devel/holmes:${{ github.ref_name }} us-central1-docker.pkg.dev/genuine-flight-317411/devel/holmes:latest
docker push us-central1-docker.pkg.dev/genuine-flight-317411/devel/holmes:latest
- name: Save artifact with helm chart
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit a1df110

Please sign in to comment.