Skip to content

Commit

Permalink
Tag built images as latest upon successful build
Browse files Browse the repository at this point in the history
  • Loading branch information
mcduffie authored Sep 5, 2023
1 parent 5b48312 commit 71d9c3d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max


# Sign the resulting Docker image digest except on PRs.
# This will only write to the public Rekor transparency log when the Docker
# repository is public to avoid leaking data. If you would like to publish
Expand All @@ -121,3 +120,8 @@ jobs:
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance.
run: echo "${{ steps.meta.outputs.tags }}" | xargs -I {} cosign sign {}@${{ steps.build-and-push.outputs.digest }}

- name: Tag as latest
uses: Actions-R-Us/[email protected]
with:
publish_latest_tag: true

0 comments on commit 71d9c3d

Please sign in to comment.