Skip to content

Commit

Permalink
build: Auto deploy via build + firebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
MylesBorins committed Feb 1, 2019
1 parent acea968 commit 7b805e7
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"projects": {
"staging": "nodejs-infrastructure"
},
"targets": {
"nodejs-infrastructure": {
"hosting": {
"nodejs-dev": [
"nodejs-dev"
]
}
}
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ yarn-error.log
.DS_Store

.env
.firebase/*
7 changes: 7 additions & 0 deletions cloudbuild-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
steps:
- name: 'gcr.io/cloud-builders/yarn'
args: ['install']
- name: 'gcr.io/cloud-builders/yarn'
args: ['run', 'build']
- name: 'gcr.io/$PROJECT_ID/firebase'
args: ['deploy', "--project", "$PROJECT_ID", "--only", "hosting"]
10 changes: 10 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"hosting": {
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
}

0 comments on commit 7b805e7

Please sign in to comment.