1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-10-14 13:24:25 -04:00

Update .gitlab-ci.yml

This commit is contained in:
2018-04-29 17:32:50 +00:00
parent 7948dea0a8
commit 8b59faa827

View File

@@ -1,18 +1,21 @@
image: node:alpine image: node:alpine
before_script: before_script:
- apk update && apk add openssl - apk update && apk add openssl
- wget https://github.com/gohugoio/hugo/releases/download/v0.40.1/hugo_0.40.1_Linux-64bit.tar.gz - wget https://github.com/gohugoio/hugo/releases/download/v0.40.1/hugo_0.40.1_Linux-64bit.tar.gz
- tar xf hugo_0.40.1_Linux-64bit.tar.gz && cp ./hugo /usr/bin - tar xf hugo_0.40.1_Linux-64bit.tar.gz && cp ./hugo /usr/bin
- npm install --quiet firebase-tools -g
deploy: deploy:
stage: deploy stage: deploy
script: script:
- npm install --quiet firebase-tools -g
- rm -rf public - rm -rf public
- hugo - hugo
- firebase deploy --token $FIREBASE_TOKEN - firebase deploy --token $FIREBASE_TOKEN
deploy-test: deploy-test:
script: script:
- npm install --quiet firebase-tools -g
- rm -rf public - rm -rf public
- hugo - hugo
- firebase list --token $FIREBASE_TOKEN - firebase list --token $FIREBASE_TOKEN
when: manual