-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update Docker image tag generation for GitHub Container Registry
- Loading branch information
Showing
1 changed file
with
1 addition
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} | ||
|