Skip to content

Commit

Permalink
feat(cloudbuild): Publish build artifacts
Browse files Browse the repository at this point in the history
Adds inital support for publishing artifacts.
  • Loading branch information
langri-sha committed Apr 30, 2021
1 parent 473aa39 commit 79358d6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,18 @@ steps:
args: ['build']
waitFor: ['Yarn install']

- name: 'gcr.io/cloud-builders/gcloud'
id: 'Publish'
entrypoint: /bin/bash
args:
- -c
- |
set -e
gsutil -u $PROJECT_ID -qm rsync -r -j $$GZIP_TYPES -x gz dist/ $(cat /var/share/bucket)
waitFor: ['Build']

options:
env:
- ALPINE_VERSION=cat docker-compose.yml | grep alpine_version | cut -d ':' -f 2 | xargs
Expand Down

0 comments on commit 79358d6

Please sign in to comment.