-
Notifications
You must be signed in to change notification settings - Fork 791
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Also uses crane to get the digest sha, as cosign prefers digest sha over tags (they will remove the ability to use tags in the future) - Removed jenkins-x-pr.yaml as it's not being used Signed-off-by: ankitm123 <[email protected]>
- Loading branch information
Showing
5 changed files
with
16 additions
and
26 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,19 +111,29 @@ jobs: | |
DOCKER_REGISTRY_ORG: jenkins-x | ||
REPO_NAME: ${{ github.event.repository.name }} | ||
VERSION: ${{ steps.prep.outputs.version }} | ||
- uses: imjasonh/[email protected] | ||
- name: get image digest | ||
env: | ||
VERSION: ${{ steps.prep.outputs.version }} | ||
run: | | ||
DIGEST_SHA_JX_BOOT=$(crane digest ghcr.io/jenkins-x/jx-boot:$VERSION) | ||
DIGEST_SHA_JX=$(crane digest ghcr.io/jenkins-x/jx:$VERSION) | ||
echo "DIGEST_SHA_JX_BOOT=${DIGEST_SHA_JX_BOOT}" >> $GITHUB_ENV | ||
echo "DIGEST_SHA_JX=${DIGEST_SHA_JX}" >> $GITHUB_ENV | ||
- 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 }} | ||
# ToDo: We should change this to some other user, a test account pushing images and artifacts for jx org sounds wrong! | ||
GIT_USERNAME: jenkins-x-bot-test | ||
DOCKER_REGISTRY_ORG: jenkins-x-bot-test | ||
DOCKER_REGISTRY_ORG: jenkins-x | ||
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 | ||
cosign sign --key=env://COSIGN_PRIVATE_KEY ghcr.io/$DOCKER_REGISTRY_ORG/$REPO_NAME:$DIGEST_SHA_JX | ||
cosign sign --key=env://COSIGN_PRIVATE_KEY ghcr.io/$DOCKER_REGISTRY_ORG/jx-boot:$DIGEST_SHA_JX_BOOT | ||
release2: | ||
if: github.repository_owner == 'jenkins-x' | ||
runs-on: ubuntu-latest | ||
|
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
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
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