Skip to content

Commit

Permalink
chore: Update Docker image tag generation for GitHub Container Registry
Browse files Browse the repository at this point in the history
  • Loading branch information
Utesgui committed Jul 19, 2024
1 parent 90b1c5b commit 824d184
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/docker-publish-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

# add static tag latest
- name: set tag latest
id: tag-static
run: echo "tags=latest" >> $GITHUB_OUTPUT

# Merge the tag lists from docker/metadata-action and GitHub API
- name: Build tag list
Expand Down Expand Up @@ -110,16 +106,9 @@ jobs:
if: ${{ github.event_name != 'pull_request' }}
env:
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
TAGS: ${{ steps.meta.outputs.tags }}
TAGS: ${{ steps.tag-list.outputs.tags }}
DIGEST: ${{ steps.build-and-push.outputs.digest }}
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance.
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}

# # Keep latest Tag up to date
# - name: Update latest image
# uses: silverlyra/[email protected]
# with:
# repository: ${{ github.repository }}
# candidate-tag: ${{ github.ref_name }}

0 comments on commit 824d184

Please sign in to comment.