Skip to content

Commit

Permalink
Update dockerimage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasleplus authored Mar 20, 2024
1 parent 7cd15bd commit 7766cf6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,14 @@ jobs:
TAGS: ${{ steps.meta.outputs.tags }}
DIGEST: ${{ steps.build-and-push.outputs.digest }}
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
run: \echo "${TAGS}" | \xargs -I {} cosign sign --key <(\echo "${COSIGN_PRIVATE_KEY}") --yes "{}@${DIGEST}" \
run: |
\echo "${COSIGN_PRIVATE_KEY}" > cosign.key
\echo "${TAGS}" | \xargs -I {} cosign sign --key cosign.key --yes "{}@${DIGEST}" \
-a "workflow=${{ github.workflow }}" \
-a "repo=${{ github.repository }}" \
-a "branch=${{ github.ref_name }}" \
-a "ref=${{ github.sha }}"
\rm -f cosign.key
- name: Test the Docker image
working-directory: ${{ env.IMAGE }}
run: docker compose -f docker-compose.test.yml run sut
Expand Down

0 comments on commit 7766cf6

Please sign in to comment.