From 75c6cf0cb107b45c34ac5b1bc8d60e54f23bfa42 Mon Sep 17 00:00:00 2001 From: nicktrn <55853254+nicktrn@users.noreply.github.com> Date: Tue, 9 Jul 2024 09:56:43 +0100 Subject: [PATCH] Switch from latest to v3 tag for versioned container images --- .github/workflows/publish-docker.yml | 4 ++-- .github/workflows/publish-infra.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index ef98fc339..688b1d25d 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -51,9 +51,9 @@ jobs: ref_without_tag=ghcr.io/triggerdotdev/trigger.dev image_tags=$ref_without_tag:${{ steps.get_version.outputs.version }} - # if it's a versioned tag, also tag it as latest + # if it's a versioned tag, also tag it as v3 if [[ "${{ github.ref_name }}" == v.docker.* ]]; then - image_tags=$image_tags,$ref_without_tag:latest + image_tags=$image_tags,$ref_without_tag:v3 fi echo "IMAGE_TAGS=${image_tags}" >> "$GITHUB_OUTPUT" diff --git a/.github/workflows/publish-infra.yml b/.github/workflows/publish-infra.yml index c6d858b7d..1a3486b01 100644 --- a/.github/workflows/publish-infra.yml +++ b/.github/workflows/publish-infra.yml @@ -111,11 +111,11 @@ jobs: REPOSITORY: ${{ steps.prep.outputs.REPOSITORY }} IMAGE_TAG: ${{ steps.prep.outputs.IMAGE_TAG }} - - name: 🐙 Push 'latest' to GitHub Container Registry + - name: 🐙 Push 'v3' tag to GitHub Container Registry if: startsWith(github.ref_name, 'v.docker.') run: | - docker tag infra_image $REGISTRY/$REPOSITORY:latest - docker push $REGISTRY/$REPOSITORY:latest + docker tag infra_image $REGISTRY/$REPOSITORY:v3 + docker push $REGISTRY/$REPOSITORY:v3 env: REGISTRY: ghcr.io/triggerdotdev REPOSITORY: ${{ steps.prep.outputs.REPOSITORY }}