forked from librariesio/libraries.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
18 lines (18 loc) · 866 Bytes
/
Copy pathcloudbuild.yaml
File metadata and controls
18 lines (18 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
steps:
# TODO: Switch kaniko back to "latest" after this issue is fixed: https://github.com/GoogleContainerTools/kaniko/issues/1791
- name: 'gcr.io/kaniko-project/executor@sha256:6ecc43ae139ad8cfa11604b592aaedddcabff8cef469eda303f1fb5afe5e3034'
env: ['REVISION_ID=$REVISION_ID']
args:
- --destination=gcr.io/$PROJECT_ID/libraries.io:$REVISION_ID
- --cache=true
- --cache-ttl=336h
- --build-arg=REVISION_ID
timeout: 2400s
# copy the compiled assets from the docker container to the workspace to then push to GCS
- name: 'docker'
args: ['run', '-v', '/workspace:/workspace', 'gcr.io/$PROJECT_ID/libraries.io:$REVISION_ID', 'cp', '-R', '/libraries.io/public/assets/', '/workspace/']
timeout: 2400s
- name: 'gcr.io/cloud-builders/gsutil'
args: ['-m', 'cp', '-r', '/workspace/assets/', 'gs://libraries-static-assets/']
timeout: 2400s
timeout: 4800s