-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5945 from SgtCoDFish/release-1.11-autobuild
[release-1.11] Autobuild on tag push
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 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 |
---|---|---|
|
@@ -18,3 +18,5 @@ _bin/ | |
.bin/ | ||
user.bazelrc | ||
*.bak | ||
/go.work.sum | ||
/go.work |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# This cloudbuild config file is intended to be triggered when a tag is pushed to the cert-manager repo | ||
# and will build a cert-manager release and push to Google Cloud Storage (GCS). | ||
|
||
# The release won't be published automatically; this file just defines the build steps. | ||
|
||
# The full release and publish process is documented here: | ||
# https://cert-manager.io/docs/contributing/release-process/ | ||
|
||
timeout: 2700s # 45m | ||
|
||
steps: | ||
# cert-manager relies on the git checkout to determine release version, among other things | ||
# By default, gcb only does a shallow clone, so we need to "unshallow" to get more details | ||
- name: gcr.io/cloud-builders/git | ||
args: ['fetch', '--unshallow'] | ||
|
||
## Build release artifacts and push to a bucket | ||
- name: 'eu.gcr.io/jetstack-build-infra-images/make-dind:20230406-0ef4440-bullseye' | ||
entrypoint: bash | ||
args: | ||
- -c | ||
- | | ||
set -eu -o pipefail | ||
make vendor-go | ||
make CMREL_KEY="${_KMS_KEY}" RELEASE_TARGET_BUCKET="${_RELEASE_TARGET_BUCKET}" -j16 upload-release | ||
echo "Wrote to ${_RELEASE_TARGET_BUCKET}" | ||
tags: | ||
- "cert-manager-tag-push" | ||
- "ref-${REF_NAME}-${COMMIT_SHA}" | ||
|
||
substitutions: | ||
_KMS_KEY: "projects/cert-manager-release/locations/europe-west1/keyRings/cert-manager-release/cryptoKeys/cert-manager-release-signing-key/cryptoKeyVersions/1" | ||
_RELEASE_TARGET_BUCKET: "cert-manager-release" | ||
|
||
options: | ||
machineType: N1_HIGHCPU_32 |