Skip to content

Commit

Permalink
fix(build): login with cosign upon release
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Guerra <luca@guerra.sh>
  • Loading branch information
LucaGuerra authored and poiana committed Sep 5, 2023
1 parent 36f6c66 commit a2a5032
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ jobs:
with:
cosign-release: 'v2.1.0'

- name: Login with cosign
run: cosign login --username ${{ github.repository_owner }} --password ${{ secrets.GITHUB_TOKEN }}

- name: Sign the images with GitHub OIDC Token
run: cosign sign --yes ${{ steps.oci_build.outputs.ARTIFACT_REPO_DIGEST }}

Expand All @@ -72,6 +75,5 @@ jobs:
aws-region: ${{ env.AWS_S3_REGION }}

- name: Upload files to S3

# uses AWS_S3_BUCKET, AWS_S3_PREFIX, AWS_S3_REGION environment variables
run: build/registry/rules-registry upload-to-s3 registry.yaml ${{ github.ref_name }}

0 comments on commit a2a5032

Please sign in to comment.