From 31dc9c4d42c797db9e73e08953d91e1f545aa013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Molinero=20Fern=C3=A1ndez?= Date: Sat, 14 Jul 2018 11:47:44 +0200 Subject: [PATCH] Removed Firebase --- .gitignore | 3 --- .gitlab-ci.yml | 11 ++++------- firebase.json | 30 ------------------------------ package.json | 5 +---- 4 files changed, 5 insertions(+), 44 deletions(-) delete mode 100644 firebase.json diff --git a/.gitignore b/.gitignore index 0ce64e4..08fe198 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,5 @@ node_modules/ npm-debug.log* -.firebaserc -firebase-debug.log - /.tmp/ /dist/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e862a32..1aa550b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/firebase.json b/firebase.json deleted file mode 100644 index fda18d2..0000000 --- a/firebase.json +++ /dev/null @@ -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" - }] - }] - } -} diff --git a/package.json b/package.json index c77ea5c..ed44ba6 100644 --- a/package.json +++ b/package.json @@ -47,8 +47,5 @@ "os": [ "!win32" ], - "preferGlobal": true, - "devDependencies": { - "firebase-tools": "^3.0.0" - } + "preferGlobal": true }