Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/build_container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,23 @@ jobs:
echo Building container image for branch ${{ github.ref }} done
fi
- name: Push container image

if: vars.DEPLOY_CONTAINERS == 'true'

run: |
echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin docker.io
docker push docker.io/${{ env.DOCKER_HUB_ORGANIZATION }}/${{ env.DOCKER_HUB_REPOSITORY }} --all-tags
echo pushing container image done
- uses: sigstore/cosign-installer@main

- name: Write signing key to disk (only needed for `cosign sign --key`)

if: vars.DEPLOY_CONTAINERS == 'true'
run: echo "${{ secrets.COSIGN_PRIVATE_KEY }}" > cosign.key

- name: Sign container image
if: vars.DEPLOY_CONTAINERS == 'true'

run: |
cosign sign -y --key cosign.key \
docker.io/${{ env.DOCKER_HUB_ORGANIZATION }}/${{ env.DOCKER_HUB_REPOSITORY }}:main
Expand Down