Skip to content

Commit 0f9a59e

Browse files
authored
Update docker-publish.yml
1 parent 99a1b04 commit 0f9a59e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
- name: Checkout repository
3131
uses: actions/checkout@v3
3232

33+
- name: Get version tag
34+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
35+
3336
# Install the cosign tool except on PR
3437
# https://github.com/sigstore/cosign-installer
3538
- name: Install cosign
@@ -61,7 +64,7 @@ jobs:
6164
with:
6265
context: .
6366
push: ${{ github.event_name != 'pull_request' }}
64-
tags: ${{ github.repository }}:${{ github.ref }},latest
67+
tags: squid-https-cache:${{ env.RELEASE_VERSION }},squid-https-cache:latest
6568
cache-from: type=gha
6669
cache-to: type=gha,mode=max
6770

@@ -74,7 +77,7 @@ jobs:
7477
if: ${{ github.event_name != 'pull_request' }}
7578
env:
7679
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
77-
TAGS: ${{ github.repository }}:${{ github.ref }},latest
80+
TAGS: squid-https-cache:${{ env.RELEASE_VERSION }},squid-https-cache:latest
7881
DIGEST: ${{ steps.build-and-push.outputs.digest }}
7982
# This step uses the identity token to provision an ephemeral certificate
8083
# against the sigstore community Fulcio instance.

0 commit comments

Comments
 (0)