Added functionalities #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Container signing | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
permissions: | |
id-token: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Docker buildx | |
uses: docker/[email protected] | |
- name: Install cosign | |
uses: sigstore/cosign-installer@main | |
with: | |
cosign-release: 'v1.3.1' | |
- name: Sign the container image | |
env: | |
COSIGN_EXPERIMENTAL: "true" | |
run: | | |
cosign sign \ | |
${REPO}@${{ steps.push-step.outputs.digest }} |