Skip to content

Commit

Permalink
update musl bulid action
Browse files Browse the repository at this point in the history
  • Loading branch information
YuChia-Wei committed Apr 17, 2024
1 parent f2498fa commit a1465f7
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/docker-publish-musl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,16 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 1

# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@6e04d228eb30da1757ee4e1dd75a0ec73a653e06 #v3.1.1
uses: sigstore/cosign-installer@v3.5.0
with:
cosign-release: 'v2.1.1'
cosign-release: 'v2.2.4'

# Setup Docker buildx
# https://github.com/docker/setup-buildx-action
Expand Down Expand Up @@ -111,4 +113,10 @@ jobs:
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}
# run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
run: |
images=""
for tag in ${TAGS}; do
images+="${tag}@${DIGEST} "
done
cosign sign --yes ${images}

0 comments on commit a1465f7

Please sign in to comment.