-
Notifications
You must be signed in to change notification settings - Fork 108
/
Copy pathcloudbuild.yaml
46 lines (41 loc) · 1.04 KB
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
steps:
- name: gcr.io/cloud-builders/gcloud
args:
- kms
- decrypt
- --ciphertext-file=ci/id_rsa.enc
- --plaintext-file=/root/.ssh/id_rsa
- --location=global
- --keyring=build
- --key=build-key
volumes:
- name: 'ssh'
path: /root/.ssh
- name: 'gcr.io/cloud-builders/git'
entrypoint: 'bash'
args:
- '-c'
- |
chmod 600 /root/.ssh/id_rsa
cat <<EOF >/root/.ssh/config
Hostname github.com
IdentityFile /root/.ssh/id_rsa
EOF
mv ./ci/github_known_hosts /root/.ssh/known_hosts
git config --global url."ssh://[email protected]/solo-io".insteadOf https://github.com/solo-io
volumes:
- name: 'ssh'
path: /root/.ssh
- name: 'soloio/dep'
args: ['ensure']
env: ['PROJECT_ROOT=github.com/solo-io/supergloo']
volumes:
- name: 'ssh'
path: /root/.ssh
- name: 'gcr.io/cloud-builders/go'
args: ['build', '-o', 'supergloo', 'github.com/solo-io/supergloo/cmd']
env: ['PROJECT_ROOT=github.com/solo-io/supergloo']
artifacts:
objects:
location: 'gs://artifacts.solo.io/'
paths: ['supergloo']