mirror of
https://github.com/hectorm/hblock.git
synced 2026-04-20 22:16:34 +05:30
Removed Firebase
This commit is contained in:
parent
6bd7c282e9
commit
31dc9c4d42
4 changed files with 5 additions and 44 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,8 +1,5 @@
|
|||
node_modules/
|
||||
npm-debug.log*
|
||||
|
||||
.firebaserc
|
||||
firebase-debug.log
|
||||
|
||||
/.tmp/
|
||||
/dist/
|
||||
|
|
|
|||
|
|
@ -14,15 +14,12 @@ build:
|
|||
paths:
|
||||
- dist/
|
||||
|
||||
deploy:
|
||||
pages:
|
||||
stage: deploy
|
||||
script:
|
||||
- PATH="$(npm bin):${PATH}"
|
||||
- npm install
|
||||
- firebase use --token "${FIREBASE_TOKEN}" "${FIREBASE_PROJECT}"
|
||||
- firebase deploy --token "${FIREBASE_TOKEN}" --message "Pipeline ${CI_PIPELINE_ID}, job ${CI_JOB_ID}"
|
||||
cache:
|
||||
- cp -r dist/ public/
|
||||
artifacts:
|
||||
paths:
|
||||
- node_modules/
|
||||
- public/
|
||||
only:
|
||||
- master
|
||||
|
|
|
|||
|
|
@ -1,30 +0,0 @@
|
|||
{
|
||||
"hosting": {
|
||||
"public": "dist",
|
||||
"headers": [{
|
||||
"source": "**",
|
||||
"headers": [{
|
||||
"key": "Content-Security-Policy",
|
||||
"value": "default-src 'none'; style-src 'unsafe-inline' https://hblock-check.molinero.xyz; img-src data:;"
|
||||
}, {
|
||||
"key": "X-XSS-Protection",
|
||||
"value": "1;mode=block"
|
||||
}, {
|
||||
"key": "X-Frame-Options",
|
||||
"value": "SAMEORIGIN"
|
||||
}]
|
||||
}, {
|
||||
"source": "**/@(*.txt|hosts)",
|
||||
"headers": [{
|
||||
"key": "Content-Type",
|
||||
"value": "text/plain; charset=utf-8"
|
||||
}]
|
||||
}, {
|
||||
"source": "**/*.zip",
|
||||
"headers": [{
|
||||
"key": "Content-Type",
|
||||
"value": "application/zip"
|
||||
}]
|
||||
}]
|
||||
}
|
||||
}
|
||||
|
|
@ -47,8 +47,5 @@
|
|||
"os": [
|
||||
"!win32"
|
||||
],
|
||||
"preferGlobal": true,
|
||||
"devDependencies": {
|
||||
"firebase-tools": "^3.0.0"
|
||||
}
|
||||
"preferGlobal": true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue