Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add configurable prefix for the digest artifact name #26

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docker-merge-digests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ inputs:
description: docker registry password
default: ""
required: false
digest_artifact_prefix:
description: prefix for the digest artifact
required: false
default: "digests"

outputs:
tags:
Expand All @@ -41,7 +45,7 @@ runs:
uses: mobilecoinofficial/gh-actions/download-artifact@v0
with:
path: /tmp/digests
pattern: digests-${{ env.IMAGE_NAME }}*
pattern: ${{ inputs.digest_artifact_prefix }}-${{ env.IMAGE_NAME }}*
merge-multiple: true

- name: Set up Docker Buildx
Expand Down
6 changes: 5 additions & 1 deletion docker/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ inputs:
description: save the docker image digest to an artifact
required: false
default: "false"
digest_artifact_prefix:
description: prefix for the digest artifact
required: false
default: "digests"

outputs:
tags:
Expand Down Expand Up @@ -132,7 +136,7 @@ runs:
if: inputs.save_digest == 'true'
uses: mobilecoinofficial/gh-actions/upload-artifact@v0
with:
name: digests-${{ env.IMAGE_NAME }}-${{ runner.arch }}
name: ${{ inputs.digest_artifact_prefix }}-${{ env.IMAGE_NAME }}-${{ runner.arch }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Loading