fix sign step
All checks were successful
Docker Build Smart Logic / Build amd64 & arm64 (push) Successful in 23s

This commit is contained in:
2026-02-09 21:19:52 +01:00
parent 86e7bb52e3
commit 3dd74cdda9

View File

@@ -252,18 +252,17 @@ jobs:
cosign version
- name: Sign image
if: env.IS_TAG == 'true'
shell: bash
run: |
set -euo pipefail
IMAGE_TO_SIGN="${REGISTRY_HOST}/${IMAGE_BASE}:${VERSION}"
echo "Signing image $IMAGE_TO_SIGN"
# Cosign login falls nötig
export COSIGN_PASSWORD="${{ secrets.COSIGN_KEY }}"
cosign sign --key <(echo "$COSIGN_PASSWORD") "$IMAGE_TO_SIGN"
# Key nur für Tags nutzen
cosign sign --key <(echo "${{ secrets.COSIGN_KEY }}") "$IMAGE_TO_SIGN"