Skip to content

Commit

Permalink
second attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
Loki-Afro committed Sep 4, 2024
1 parent 684e4e3 commit 43902d6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Build and push ${{ github.repository }}
id: build_and_push
if: ${{ env.IMAGE_EXISTS == 0 }}
uses: docker/build-push-action@v5
with:
Expand All @@ -66,15 +67,15 @@ jobs:
done
cosign sign --yes --key env://COSIGN_PRIVATE_KEY ${images}
env:
TAGS: ${{ steps.docker_meta.outputs.tags }}
TAGS: ${{ steps.docker_meta_img.outputs.tags }}
COSIGN_PRIVATE_KEY: ${{ secrets.BC_3751_COSIGN_PRIVATE_KEY }}
COSIGN_PASSWORD: ${{ secrets.BC_3751_COSIGN_PRIVATE_KEY_PASSWORD }}
DIGEST: ${{ steps.build-and-push.outputs.digest }}
DIGEST: ${{ steps.build_and_push.outputs.digest }}

- name: Sign the images with GitHub OIDC Token
env:
DIGEST: ${{ steps.build-and-push.outputs.digest }}
TAGS: ${{ steps.docker_meta.outputs.tags }}
DIGEST: ${{ steps.build_and_push.outputs.digest }}
TAGS: ${{ steps.docker_meta_img.outputs.tags }}
run: |
images=""
for tag in ${TAGS}; do
Expand Down

0 comments on commit 43902d6

Please sign in to comment.