From 242e8d1dd9abd1c91b9ec3a6e136aafd09186ec7 Mon Sep 17 00:00:00 2001 From: anhefti Date: Tue, 22 Mar 2022 08:46:06 +0100 Subject: [PATCH] fix docker build --- .github/workflows/buildReporting.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/buildReporting.yml b/.github/workflows/buildReporting.yml index 71861f27..a7958484 100644 --- a/.github/workflows/buildReporting.yml +++ b/.github/workflows/buildReporting.yml @@ -144,10 +144,16 @@ jobs: push: true tags: | anhefti/seb-server:${{ env.TAG_NAME }} + - + name: Write signing key to disk + run: 'echo "$KEY" > cosign.key' + shell: bash + env: + KEY: ${{ secrets.COSIGN_PRIVATE_KEY }} - - name: Sign image with a key + name: Sign image with private key run: | - echo ${COSIGN_PRIVATE_KEY} > /tmp/cosign.key && cosign sign --key /tmp/cosign.key docker.io/anhefti/seb-server:${{ env.TAG_NAME }} + cosign sign --key cosign.key docker.io/anhefti/seb-server:${{ env.TAG_NAME }} env: COSIGN_PRIVATE_KEY: ${{secrets.COSIGN_PRIVATE_KEY}} COSIGN_PASSWORD: ${{secrets.COSIGN_PASSWORD}}