-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
22 lines (22 loc) · 954 Bytes
/
cloudbuild.yaml
File metadata and controls
22 lines (22 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
steps:
- name: gcr.io/cloud-builders/docker
args: ['build', '-t', 'gcr.io/$PROJECT_ID/python3', '.']
- name: 'gcr.io/${PROJECT_ID}/python3'
entrypoint: 'python3'
args: ["-m", "pylint", 'uplink_python/uplink.py']
- name: gcr.io/cloud-builders/gcloud
entrypoint: 'bash'
args: ["-c","gcloud secrets versions access latest --secret=StorjAPIKey >>secret.txt" ]
- name: 'gcr.io/${PROJECT_ID}/python3'
entrypoint: 'bash'
args: ["-c", "git clone -b v1.2.2 https://github.com/storj/uplink-c"]
- name: 'gcr.io/${PROJECT_ID}/python3'
entrypoint: 'bash'
args: ["-c", "cd uplink-c && go build -o libuplinkc.so -buildmode=c-shared && cp *.so ../uplink_python/"]
- name: 'gcr.io/${PROJECT_ID}/python3'
entrypoint: 'python3'
args: ['-m', 'unittest', 'test/test_cases.py', '-v']
tags: ['cloud-builders-community']
images: ['gcr.io/$PROJECT_ID/python3']
tags: ['cloud-builders-community']