Skip to content

Commit

Permalink
Merge pull request #8441 from osamamagdy/sign-images-cosign
Browse files Browse the repository at this point in the history
feat: sign pushed images with cosign
  • Loading branch information
jenkins-x-bot authored Oct 24, 2022
2 parents 364be76 + c033fff commit 1ea08b7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/jenkins-x-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,19 @@ jobs:
DOCKER_REGISTRY_ORG: jenkins-x
REPO_NAME: ${{ github.event.repository.name }}
VERSION: ${{ steps.prep.outputs.version }}
- name: cosign-installer
uses: sigstore/[email protected]
- name: Sign the published Docker image
env:
COSIGN_PASSWORD: ${{secrets.COSIGN_PWD}}
COSIGN_PRIVATE_KEY: ${{secrets.COSIGN_PRIVATE_KEY}}
GITHUB_TOKEN: ${{ secrets.GIT_BOT_TOKEN }}
GIT_USERNAME: jenkins-x-bot-test
DOCKER_REGISTRY_ORG: jenkins-x-bot-test
REPO_NAME: ${{ github.event.repository.name }}
run: |
cosign sign --key=env://COSIGN_PRIVATE_KEY ghcr.io/$DOCKER_REGISTRY_ORG/$REPO_NAME:$VERSION
cosign sign --key=env://COSIGN_PRIVATE_KEY ghcr.io/$DOCKER_REGISTRY_ORG/jx-boot:$VERSION
release2:
if: github.repository_owner == 'jenkins-x'
runs-on: ubuntu-latest
Expand Down

0 comments on commit 1ea08b7

Please sign in to comment.