forked from curioswitch/curiostack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudbuild-release.yaml
47 lines (47 loc) · 1.22 KB
/
cloudbuild-release.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
47
---
steps:
- id: curio-generated-fetch-builder-image
waitFor:
- '-'
name: curiostack/cloud-builder
entrypoint: bash
args:
- -c
- echo Fetched builder image.
- id: curio-generated-fetch-compressed-build-cache
waitFor:
- '-'
name: curiostack/gsutil-lz4
volumes:
- name: gradle-wrapper
path: /root/.gradle/wrapper
- name: gradle-caches
path: /root/.gradle/caches
- name: curiostack
path: /root/.gradle/curiostack
dir: /root/.gradle
entrypoint: ash
args:
- -c
- gsutil cp gs://curioswitch-gradle-build-cache/cloudbuild-cache-compressed.tar.lz4 /tmp/cloudbuild-cache-compressed.tar.lz4 && lz4 -dc /tmp/cloudbuild-cache-compressed.tar.lz4 | tar -xp || echo Could not fetch compressed build cache...
- id: curio-generated-build-releases
waitFor:
- curio-generated-fetch-compressed-build-cache
name: curiostack/cloud-builder
volumes:
- name: gradle-wrapper
path: /root/.gradle/wrapper
- name: gradle-caches
path: /root/.gradle/caches
- name: curiostack
path: /root/.gradle/curiostack
entrypoint: ./gradlew
args:
- releaseBuild
- --stacktrace
env:
- CI=true
- TAG_NAME=$TAG_NAME
- BRANCH_NAME=$BRANCH_NAME
- CLOUDBUILD_BUILD_ID=$BUILD_ID
timeout: 60m