Created
April 12, 2019 01:20
-
-
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
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: | |
- 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