Skip to content

Instantly share code, notes, and snippets.

@andresmijares
Created May 7, 2019 18:36
Show Gist options
  • Save andresmijares/e0c8741e0ff347f36d0dd6095ab862c2 to your computer and use it in GitHub Desktop.
Save andresmijares/e0c8741e0ff347f36d0dd6095ab862c2 to your computer and use it in GitHub Desktop.
clod build sample
steps:
- name: 'gcr.io/$PROJECT_ID/firebase'
args: [ 'use', '$_PROJECT_NAME']
secretEnv: ['FIREBASE_TOKEN']
- name: 'gcr.io/cloud-builders/npm'
dir: 'functions'
args: ['install']
- name: 'gcr.io/$PROJECT_ID/firebase'
args: [ 'deploy', '--only', 'functions']
secretEnv: ['FIREBASE_TOKEN']
secrets:
- kmsKeyName: 'projects/YOUR_PROJECT_NAME/locations/global/keyRings/YOUR_RING_NAME/cryptoKeys/YOUR_KEY_NAME'
secretEnv:
FIREBASE_TOKEN: <YOUR KEY GOES HERE>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment