Skip to content

Instantly share code, notes, and snippets.

@fawix
Created August 2, 2021 18:39
Show Gist options
  • Save fawix/f55bb1ab0fad313ca669518386436840 to your computer and use it in GitHub Desktop.
Save fawix/f55bb1ab0fad313ca669518386436840 to your computer and use it in GitHub Desktop.
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