mirror of
https://github.com/hectorm/hblock.git
synced 2026-04-21 22:46:32 +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/
|
node_modules/
|
||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
|
|
||||||
.firebaserc
|
|
||||||
firebase-debug.log
|
|
||||||
|
|
||||||
/.tmp/
|
/.tmp/
|
||||||
/dist/
|
/dist/
|
||||||
|
|
|
||||||
|
|
@ -14,15 +14,12 @@ build:
|
||||||
paths:
|
paths:
|
||||||
- dist/
|
- dist/
|
||||||
|
|
||||||
deploy:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
- PATH="$(npm bin):${PATH}"
|
- cp -r dist/ public/
|
||||||
- npm install
|
artifacts:
|
||||||
- firebase use --token "${FIREBASE_TOKEN}" "${FIREBASE_PROJECT}"
|
|
||||||
- firebase deploy --token "${FIREBASE_TOKEN}" --message "Pipeline ${CI_PIPELINE_ID}, job ${CI_JOB_ID}"
|
|
||||||
cache:
|
|
||||||
paths:
|
paths:
|
||||||
- node_modules/
|
- public/
|
||||||
only:
|
only:
|
||||||
- master
|
- 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": [
|
"os": [
|
||||||
"!win32"
|
"!win32"
|
||||||
],
|
],
|
||||||
"preferGlobal": true,
|
"preferGlobal": true
|
||||||
"devDependencies": {
|
|
||||||
"firebase-tools": "^3.0.0"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue