Skip to content

Commit 03a673e

Browse files
Update docker-publish.yml
1 parent 11d4fa4 commit 03a673e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ env:
2121
# github.repository as <account>/<repo>
2222
IMAGE_NAME: ${{ github.repository }}
2323

24-
2524
jobs:
2625
build:
2726

@@ -77,7 +76,7 @@ jobs:
7776
with:
7877
context: .
7978
push: ${{ github.event_name != 'pull_request' }}
80-
tags: ${{ steps.meta.outputs.tags }}
79+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest # Always tag as 'latest'
8180
labels: ${{ steps.meta.outputs.labels }}
8281
cache-from: type=gha
8382
cache-to: type=gha,mode=max
@@ -91,7 +90,7 @@ jobs:
9190
if: ${{ github.event_name != 'pull_request' }}
9291
env:
9392
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
94-
TAGS: ${{ steps.meta.outputs.tags }}
93+
TAGS: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
9594
DIGEST: ${{ steps.build-and-push.outputs.digest }}
9695
# This step uses the identity token to provision an ephemeral certificate
9796
# against the sigstore community Fulcio instance.

0 commit comments

Comments
 (0)