-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcloudbuild.yaml
17 lines (17 loc) · 879 Bytes
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
steps:
- name: 'gcr.io/cloud-builders/go'
entrypoint: "/bin/sh"
args:
- -c
- |
GOARCH=amd64 GOOS=windows go build -o win64/token-generator.exe token-generator.go
GOARCH=amd64 GOOS=linux go build -o linux64/token-generator token-generator.go
GOARCH=amd64 GOOS=darwin go build -o darwin64/token-generator token-generator.go
- name: 'gcr.io/cloud-builders/gsutil'
entrypoint: "/bin/sh"
args:
- -c
- |
gsutil -h 'Content-Disposition:filename=token-generator.exe' cp win64/token-generator.exe gs://token-generator/$BRANCH_NAME/win64/
gsutil -h 'Content-Disposition:filename=token-generator' cp linux64/token-generator gs://token-generator/$BRANCH_NAME/linux64/
gsutil -h 'Content-Disposition:filename=token-generator' cp darwin64/token-generator gs://token-generator/$BRANCH_NAME/darwin64/