Browse Source

added firebase hosting

merge-requests/1/merge
Thilo Billerbeck 2 years ago
parent
commit
5ab26887d9
  1. 5
      .firebaserc
  2. 19
      .gitlab-ci.yml
  3. 16
      firebase.json

5
.firebaserc

@ -0,0 +1,5 @@
{
"projects": {
"default": "avian-safeguard-214619"
}
}

19
.gitlab-ci.yml

@ -0,0 +1,19 @@
image: rambabusaravanan/firebase
stages:
- deploy
cache:
paths:
- node_modules/
key: "$CI_BUILD_REPO"
deploy-prod:
stage: deploy
only:
- master
script:
- yarn
- yarn run build
- firebase use avian-safeguard-214619 --token $FIREBASE_TOKEN
- firebase deploy --only hosting -m "Pipe $CI_PIPELINE_ID Build $CI_BUILD_ID" --token $FIREBASE_TOKEN

16
firebase.json

@ -0,0 +1,16 @@
{
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
Loading…
Cancel
Save