Skip to content

Commit 1249523

Browse files
committed
Switch from latest to v3 tag for versioned container images
1 parent 9ba5dba commit 1249523

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/publish-docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ jobs:
5151
ref_without_tag=ghcr.io/triggerdotdev/trigger.dev
5252
image_tags=$ref_without_tag:${{ steps.get_version.outputs.version }}
5353
54-
# if it's a versioned tag, also tag it as latest
54+
# if it's a versioned tag, also tag it as v3
5555
if [[ "${{ github.ref_name }}" == v.docker.* ]]; then
56-
image_tags=$image_tags,$ref_without_tag:latest
56+
image_tags=$image_tags,$ref_without_tag:v3
5757
fi
5858
5959
echo "IMAGE_TAGS=${image_tags}" >> "$GITHUB_OUTPUT"

.github/workflows/publish-infra.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ jobs:
111111
REPOSITORY: ${{ steps.prep.outputs.REPOSITORY }}
112112
IMAGE_TAG: ${{ steps.prep.outputs.IMAGE_TAG }}
113113

114-
- name: 🐙 Push 'latest' to GitHub Container Registry
114+
- name: 🐙 Push 'v3' tag to GitHub Container Registry
115115
if: startsWith(github.ref_name, 'v.docker.')
116116
run: |
117-
docker tag infra_image $REGISTRY/$REPOSITORY:latest
118-
docker push $REGISTRY/$REPOSITORY:latest
117+
docker tag infra_image $REGISTRY/$REPOSITORY:v3
118+
docker push $REGISTRY/$REPOSITORY:v3
119119
env:
120120
REGISTRY: ghcr.io/triggerdotdev
121121
REPOSITORY: ${{ steps.prep.outputs.REPOSITORY }}

0 commit comments

Comments
 (0)