-
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.
* Uses goreleaser to generate binaries for different platforms and post it on github releases * Triggers on tagging (done manually for now) * Changes go-build make targets to build to /dev/null as we are mostly interested in checking whether we are able to build and not generating any binaries
- Loading branch information
1 parent
3d2490d
commit d055cbb
Showing
8 changed files
with
60 additions
and
6 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
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,34 @@ | ||
steps: | ||
- id: fetch github token | ||
name: gcr.io/cloud-builders/gcloud | ||
entrypoint: "bash" | ||
args: | ||
- "-c" | ||
- "gcloud secrets versions access latest --secret=einride-bot-github-token --project=einride-terraform > github.token" | ||
|
||
- id: setup git credentials | ||
name: gcr.io/cloud-builders/gcloud | ||
entrypoint: "bash" | ||
args: | ||
- "-c" | ||
- | | ||
echo -e "https://git:$(cat github.token)@github.com" > $${HOME}/.git-credentials \ | ||
&& git config --global credential.helper store \ | ||
&& git fetch --unshallow | ||
volumes: | ||
- name: "home-folder" | ||
path: /root | ||
|
||
- id: make | ||
name: golang:1.16 | ||
args: ["make"] | ||
|
||
- id: release go binaries | ||
name: goreleaser/goreleaser | ||
entrypoint: "/bin/sh" | ||
args: | ||
- "-c" | ||
- 'export GITHUB_TOKEN="$(cat github.token)" && goreleaser' | ||
volumes: | ||
- name: "home-folder" | ||
path: /root |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
steps: | ||
- name: golang:1.16 | ||
args: ["make"] | ||
- id: make | ||
name: golang:1.16 | ||
args: ["make"] |
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,8 @@ | ||
name: ghcomment-release | ||
description: "Release pipeline" | ||
filename: .cloudbuild/configs/release.yaml | ||
github: | ||
owner: einride | ||
name: ghcomment | ||
push: | ||
tag: "^v.*" |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ github: | |
owner: einride | ||
name: ghcomment | ||
push: | ||
branch: ".*" | ||
branch: ".*" |
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,2 @@ | ||
.idea | ||
github.token |
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,4 @@ | ||
release: | ||
github: | ||
owner: einride | ||
name: ghcomment |
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