-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start go build and release tooling (#8935)
- Loading branch information
Showing
48 changed files
with
4,990 additions
and
257 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
version: v1.0 | ||
name: Create hashrelease | ||
agent: | ||
machine: | ||
type: e1-standard-4 | ||
os_image: ubuntu2004 | ||
execution_time_limit: | ||
hours: 4 | ||
|
||
global_job_config: | ||
secrets: | ||
- name: docs-ssh | ||
- name: gcloud-registry-access | ||
- name: hashrelease-docker-auth | ||
- name: iss-image-scanning | ||
prologue: | ||
commands: | ||
- chmod 0600 ~/.keys/* | ||
- ssh-add ~/.keys/* | ||
# Credentials for accessing gcloud, needed to push images to gcr | ||
- export GOOGLE_APPLICATION_CREDENTIALS=${HOME}/keys/.registry-viewer-serviceaccount.json | ||
- gcloud auth activate-service-account --key-file=${GOOGLE_APPLICATION_CREDENTIALS} | ||
- docker login | ||
- checkout | ||
|
||
blocks: | ||
- name: Publish hashrelease | ||
task: | ||
jobs: | ||
- name: Create hashrelease | ||
commands: | ||
- ./release/bin/release publish | ||
prologue: | ||
commands: | ||
- cache restore release-${SEMAPHORE_GIT_SHA} | ||
env_vars: | ||
- name: OPERATOR_BRANCH | ||
value: master | ||
- name: IS_HASHRELEASE | ||
value: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
- name: release | ||
run: | ||
when: "${FORCE_RUN} or change_in(['/*', '/release/'], {exclude: ['/**/.gitignore', '/**/*.md', '/**/LICENSE']})" | ||
execution_time_limit: | ||
minutes: 30 | ||
dependencies: | ||
- Prerequisites | ||
task: | ||
prologue: | ||
commands: | ||
- cd release | ||
jobs: | ||
- name: make ci | ||
commands: | ||
- ../.semaphore/run-and-monitor release-ci.log make ci | ||
- name: Build binary | ||
commands: | ||
- ../.semaphore/run-and-monitor release-build.log make build | ||
- cache store release-${SEMAPHORE_GIT_SHA} bin |
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
Oops, something went wrong.