Created
August 2, 2021 18:39
-
-
Save fawix/f55bb1ab0fad313ca669518386436840 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps: | |
- id: 'obtain connection information' | |
name: 'gcr.io/cloud-builders/gcloud' | |
waitFor: ['-'] | |
dir: db | |
entrypoint: 'bash' | |
args: | |
- -c | |
- > | |
gcloud secrets versions access latest --secret "${_CREDS}" --format='get(payload.data)' | base64 -d >> credentials.json && | |
exit $? | |
# These steps are related to deploying the HANA DB schema updates. | |
- id: 'deploy to hdi container' | |
name: 'gcr.io/$PROJECTID/hana-tools' | |
waitFor: ['obtain connection information'] | |
dir: db | |
entrypoint: 'bash' | |
args: | |
- -c | |
- > | |
export VCAP_SERVICES=`cat credentials.json` && | |
ls && | |
npm config set @sap:registry https://npm.sap.com && | |
npm install && | |
npm start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment