-
Notifications
You must be signed in to change notification settings - Fork 59
/
cloudbuild.yaml
21 lines (21 loc) · 1018 Bytes
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
steps:
- id: 'Fetch token for github'
name: gcr.io/cloud-builders/gcloud
entrypoint: 'bash'
args: [ '-c', "gcloud secrets versions access latest --secret=hmftools-github-private-key --format='get(payload.data)' | tr '_-' '/+' | base64 -d > /workspace/github.key" ]
- id: 'Fetch password for Dockerhub'
name: gcr.io/cloud-builders/gcloud
entrypoint: 'bash'
args: [ '-c', "gcloud secrets versions access latest --secret=hmftools-dockerhub-password --format='get(payload.data)' | tr '_-' '/+' | base64 -d > /workspace/dockerhub.password" ]
- id: 'Tag, release, build'
name: 'eu.gcr.io/hmf-build/jdk-mvn-python'
entrypoint: 'python3'
args: ['hmftools-build.py', '$TAG_NAME', '/workspace/github.key', '${_GITHUB_CLIENT_ID}', '${_GITHUB_INSTALLATION_ID}']
- id: 'Publish Docker image'
name: 'eu.gcr.io/hmf-build/docker-tag'
entrypoint: sh
args: ['/workspace/docker.sh']
logsBucket: 'gs://hmf-build-logs'
timeout: 1800s
images:
- 'eu.gcr.io/hmf-build/jdk-mvn-python'