Commit d1fd8e6f authored by Isaac Johnson's avatar Isaac Johnson

update inline app.yaml to expose secrets to deployed app

parent ff3802c7
Pipeline #146840000 failed with stages
in 3 minutes and 41 seconds
......@@ -27,9 +27,14 @@ deploy_production:
only:
- master
script:
- cp app.yaml /tmp/$CI_PIPELINE_ID-app.yaml
- sed -i "s/MYCUAPIKEY/`echo $cuAPIKey`/g" /tmp/$CI_PIPELINE_ID-app.yaml
- sed -i "s/MYCUAPISECRET/`echo $cuAPISecret`/g" /tmp/$CI_PIPELINE_ID-app.yaml
- cat /tmp/$CI_PIPELINE_ID-app.yaml
- echo $SERVICE_ACCOUNT > /tmp/$CI_PIPELINE_ID.json
- gcloud auth activate-service-account --key-file /tmp/$CI_PIPELINE_ID.json
- gcloud --quiet --project $PROJECT_ID app deploy app.yaml
- gcloud --quiet --project $PROJECT_ID app deploy /tmp/$CI_PIPELINE_ID-app.yaml
after_script:
- rm /tmp/$CI_PIPELINE_ID.json
\ No newline at end of file
- rm /tmp/$CI_PIPELINE_ID.json
- rm /tmp/$CI_PIPELINE_ID-app.yaml
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment