generated from AMRC-FactoryPlus/acs-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove the update-version PR creator; I never merge these PRs. * Fix cosign on the image builders.
- Loading branch information
Showing
1 changed file
with
4 additions
and
31 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -11,27 +11,6 @@ on: | |
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
|
||
jobs: | ||
update-version: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Update version in package.json | ||
run: | | ||
CURRENT_TAG=${GITHUB_REF#refs/tags/} | ||
echo "Current tag: $CURRENT_TAG" | ||
VERSION="${CURRENT_TAG#v}" | ||
echo "Updating version to: $VERSION" | ||
jq ".version = \"$VERSION\"" package.json > package.json.tmp | ||
mv package.json.tmp package.json | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
title: Update package.json version | ||
branch: update-version | ||
commit-message: Update package.json version | ||
body: Update the version of `package.json` as part of release process | ||
delete-branch: true | ||
base: main | ||
publish: | ||
runs-on: ubuntu-latest | ||
needs: update-version | ||
|
@@ -85,10 +64,7 @@ jobs: | |
# https://github.com/sigstore/cosign-installer | ||
- name: Install cosign | ||
if: github.event_name != 'pull_request' | ||
uses: sigstore/cosign-installer@f3c664df7af409cb4873aa5068053ba9d61a57b6 #v2.6.0 | ||
with: | ||
cosign-release: 'v1.13.1' | ||
|
||
uses: sigstore/[email protected] | ||
|
||
# Workaround: https://github.com/docker/build-push-action/issues/461 | ||
- name: Setup Docker buildx | ||
|
@@ -137,7 +113,7 @@ jobs: | |
COSIGN_EXPERIMENTAL: "true" | ||
# This step uses the identity token to provision an ephemeral certificate | ||
# against the sigstore community Fulcio instance. | ||
run: echo "${{ steps.meta.outputs.tags }}" | xargs -I {} cosign sign {}@${{ steps.build-and-push.outputs.digest }} | ||
run: echo "${{ steps.meta.outputs.tags }}" | xargs -I {} cosign sign --yes {}@${{ steps.build-and-push.outputs.digest }} | ||
build-run: | ||
runs-on: ubuntu-latest | ||
needs: build-build | ||
|
@@ -156,10 +132,7 @@ jobs: | |
# https://github.com/sigstore/cosign-installer | ||
- name: Install cosign | ||
if: github.event_name != 'pull_request' | ||
uses: sigstore/cosign-installer@f3c664df7af409cb4873aa5068053ba9d61a57b6 #v2.6.0 | ||
with: | ||
cosign-release: 'v1.13.1' | ||
|
||
uses: sigstore/[email protected] | ||
|
||
# Workaround: https://github.com/docker/build-push-action/issues/461 | ||
- name: Setup Docker buildx | ||
|
@@ -210,4 +183,4 @@ jobs: | |
COSIGN_EXPERIMENTAL: "true" | ||
# This step uses the identity token to provision an ephemeral certificate | ||
# against the sigstore community Fulcio instance. | ||
run: echo "${{ steps.meta.outputs.tags }}" | xargs -I {} cosign sign {}@${{ steps.build-and-push.outputs.digest }} | ||
run: echo "${{ steps.meta.outputs.tags }}" | xargs -I {} cosign sign --yes {}@${{ steps.build-and-push.outputs.digest }} |