Skip to content

Instantly share code, notes, and snippets.

@brunoripa
Last active May 26, 2019 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunoripa/aaf963a5723cf9cea3d77ed6fe0e5dc2 to your computer and use it in GitHub Desktop.
Save brunoripa/aaf963a5723cf9cea3d77ed6fe0e5dc2 to your computer and use it in GitHub Desktop.
steps:
- name: 'gcr.io/cloud-builders/docker'
args: [ 'build', '-t', 'gcr.io/$PROJECT_ID/runexample', '.' ]
- name: 'gcr.io/cloud-builders/docker'
args: [ 'push', 'gcr.io/$PROJECT_ID/runexample']
- name: gcr.io/cloud-builders/gcloud
env:
- 'HOSTNAME=${_HOSTNAME}'
- 'PORT=${_PORT}'
- 'PAYMENT_KEY=${_PAYMENT_KEY}'
args: ['beta', 'run', 'deploy', '--set-env-vars=PAYMENT_KEY=${_PAYMENT_KEY},HOSTNAME=${_HOSTNAME}', '--region', 'us-central1', '--allow-unauthenticated', '--image', 'gcr.io/$PROJECT_ID/runexample', 'runexample']
images:
- 'gcr.io/$PROJECT_ID/runexample'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment