Skip to content

Commit

Permalink
updated cloudbuild.yaml, courtesy of Aron
Browse files Browse the repository at this point in the history
  • Loading branch information
micahscopes committed Sep 18, 2018
1 parent 01d8ec5 commit eb6d81f
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ steps:
args: [
'build',
'-f', 'k8s/images/nginx/Dockerfile',
'--cache-from', 'gcr.io/$PROJECT_ID/learningequality-studio-nginx:latest',
'--cache-from', 'gcr.io/$PROJECT_ID/learningequality-studio-nginx:latest',
'-t', 'gcr.io/$PROJECT_ID/learningequality-studio-nginx:$COMMIT_SHA',
'-t', 'gcr.io/$PROJECT_ID/learningequality-studio-nginx:latest',
'.'
Expand Down Expand Up @@ -64,11 +64,22 @@ steps:
- 'CLOUDSDK_CONTAINER_CLUSTER=dev-qa-cluster'
secretEnv: ['POSTMARK_API_KEY']
entrypoint: 'bash'
args: [
'-c',
# still run helm.bash to initialze creds, but otherwise run our own deploy script
'/builder/helm.bash && ./helm-deploy.sh $BRANCH_NAME studio-qa-content $COMMIT_SHA $$POSTMARK_API_KEY arontest $BRANCH_NAME arontest ops-central-studio-qa-sql-proxy-gcloud-sqlproxy.sqlproxy ../gcs-service-account.json'
]
args:
- -c
- >
/builder/helm.bash &&
./helm-deploy.sh
$BRANCH_NAME
studio-qa-content
$COMMIT_SHA
$$POSTMARK_API_KEY
arontest
$BRANCH_NAME
arontest
$PROJECT_ID-studio-qa-sql-proxy-gcloud-sqlproxy.sqlproxy
../gcs-service-account.json
$PROJECT_ID
is_production
timeout: 3600s
secrets:
Expand All @@ -81,3 +92,4 @@ images:
- 'gcr.io/$PROJECT_ID/learningequality-studio-nginx:latest'
- 'gcr.io/$PROJECT_ID/learningequality-studio-app:$COMMIT_SHA'
- 'gcr.io/$PROJECT_ID/learningequality-studio-app:latest'

0 comments on commit eb6d81f

Please sign in to comment.