Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 7b805e7

Browse files
committed
build: Auto deploy via build + firebase.
1 parent acea968 commit 7b805e7

4 files changed

Lines changed: 32 additions & 0 deletions

File tree

.firebaserc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"projects": {
3+
"staging": "nodejs-infrastructure"
4+
},
5+
"targets": {
6+
"nodejs-infrastructure": {
7+
"hosting": {
8+
"nodejs-dev": [
9+
"nodejs-dev"
10+
]
11+
}
12+
}
13+
}
14+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ yarn-error.log
88
.DS_Store
99

1010
.env
11+
.firebase/*

cloudbuild-deploy.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
steps:
2+
- name: 'gcr.io/cloud-builders/yarn'
3+
args: ['install']
4+
- name: 'gcr.io/cloud-builders/yarn'
5+
args: ['run', 'build']
6+
- name: 'gcr.io/$PROJECT_ID/firebase'
7+
args: ['deploy', "--project", "$PROJECT_ID", "--only", "hosting"]

firebase.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"hosting": {
3+
"public": "public",
4+
"ignore": [
5+
"firebase.json",
6+
"**/.*",
7+
"**/node_modules/**"
8+
]
9+
}
10+
}

0 commit comments

Comments
 (0)