Skip to content

Commit

Permalink
Fixed for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
cromefire committed Oct 22, 2023
1 parent 7e5ab16 commit 11ea8c3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,18 @@ jobs:
# against the sigstore community Fulcio instance.
run: |
TAGS=""
for RAW_TAG in RAW_TAGS; do
for RAW_TAG in ${RAW_TAGS}; do
TAGS="${TAGS}$(printf "${RAW_TAG}@sha256:%s " *)"
done
echo "Signing ${TAGS}"
echo "${TAGS}" | xargs -I {} cosign sign --yes {}
for TAG in ${TAGS}; do
echo "Signing ${TAG}"
cosign sign --yes "${TAG}"
done
- name: Inspect image
env:
RAW_TAGS: ${{ join(steps.meta.outputs.tags, ' ') }}
run: |
for RAW_TAG in RAW_TAGS; do
for RAW_TAG in ${RAW_TAGS}; do
docker buildx imagetools inspect ${RAW_TAG}
done

0 comments on commit 11ea8c3

Please sign in to comment.