Skip to content

Commit

Permalink
feat: Sign base image
Browse files Browse the repository at this point in the history
  • Loading branch information
dusansimic committed Feb 4, 2024
1 parent 600200b commit 70f3d01
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
steps:
- name: Checkout the repo
uses: actions/checkout@v3
# - name: Setup cosign
# uses: sigstore/cosign-installer@v3.3.0
- name: Setup cosign
uses: sigstore/cosign-installer@v3.3.0
- name: Login to container registry
uses: redhat-actions/podman-login@v1
with:
Expand All @@ -41,12 +41,12 @@ jobs:
image: ${{ steps.build.outputs.image }}
tags: ${{ steps.build.outputs.tags }}
registry: ${{ env.REGISTRY }}
# - name: Sign image
# run: cosign sign -y --recursive --key env://COSIGN_PRIVATE_KEY ${{ env.REGISTRY }}/${{ github.repository }}/${{ env.IMAGE_NAME }}@${{ steps.push.outputs.digest }}
# env:
# COSIGN_EXPERIMENTAL: false
# COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
# COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
- name: Sign image
run: cosign sign -y --recursive --key env://COSIGN_PRIVATE_KEY ${{ env.REGISTRY }}/${{ github.repository }}/${{ env.IMAGE_NAME }}@${{ steps.push.outputs.digest }}
env:
COSIGN_EXPERIMENTAL: false
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
node:
needs: build
uses: ./.github/workflows/node.yml
Expand Down
4 changes: 4 additions & 0 deletions cosign.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEm86+C2XTX+/q8HFr6ddOwkxlUFPA
Wv72sowaeqCHLrFdMLThkRIYg1GoGXJCvUc5SbuFIQloPzJhnSn0F1Y1RQ==
-----END PUBLIC KEY-----
4 changes: 0 additions & 4 deletions ghcr.io-dusansimic-toolbox-images.pub

This file was deleted.

0 comments on commit 70f3d01

Please sign in to comment.