Skip to content

Instantly share code, notes, and snippets.

@thedanielforum
Created April 12, 2019 01:20
Show Gist options
  • Save thedanielforum/ebbf5fea6c408a7b1f69470d385dae08 to your computer and use it in GitHub Desktop.
Save thedanielforum/ebbf5fea6c408a7b1f69470d385dae08 to your computer and use it in GitHub Desktop.
Google cloud build configuration file for deploying a react app to firebase hosting
steps:
- name: 'gcr.io/cloud-builders/yarn'
args: ['install']
- name: 'gcr.io/cloud-builders/npm'
args: ['run', 'lint']
- name: 'gcr.io/cloud-builders/npm'
args: ['run', 'test']
env:
- 'CI=true'
- name: 'gcr.io/cloud-builders/npm'
args: ['run', 'build']
- name: 'gcr.io/$PROJECT_ID/firebase'
args: ['deploy', '-P', '$PROJECT_ID', '--only', 'hosting:$BRANCH_NAME', '--token', 'INSERT TOKEN HERE']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment