Skip to content

Commit

Permalink
[deploy] fix compile step
Browse files Browse the repository at this point in the history
  • Loading branch information
cray0000 committed Apr 6, 2020
1 parent 23b7d08 commit 5237f14
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions styleguide/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,17 @@ steps:
#
# Compiled files will become available under the same name in
# ./deploy/compiled folder
- name: 'ubuntu'
args: [bash, 'cd ${_PATH} && ./deploy/compile.sh']
- id: compile kube resources
name: gcr.io/cloud-builders/kubectl
entrypoint: bash
args:
- -c
- 'cd $$_PATH && ./deploy/compile.sh'
env:
# pipe all user defined substitutions
# you MUST specify each env variable from the `substitutions` section above
- _APP=$_APP
- _PATH=$_PATH
# pipe all default substitutions
# https://cloud.google.com/cloud-build/docs/configuring-builds/substitute-variable-values#using_default_substitutions
- PROJECT_ID=$PROJECT_ID
Expand All @@ -67,7 +72,8 @@ steps:
- REVISION_ID=$REVISION_ID

# Create deployment and service
- name: 'gcr.io/cloud-builders/kubectl'
- id: apply kube resources
name: 'gcr.io/cloud-builders/kubectl'
args:
- apply
- -f
Expand Down

0 comments on commit 5237f14

Please sign in to comment.