From a0aca39528108d2df335246a4058fb9cd14db427 Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Sun, 29 Apr 2018 14:20:19 +0000 Subject: [PATCH] Add .gitlab-ci.yml --- .gitlab-ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..fa1e1933 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,13 @@ +image: mhart/alpine-node:6.3 +before_script: + - apk update && apk add openssl + - wget https://github.com/gohugoio/hugo/releases/download/v0.40.1/hugo_0.40.1_Linux-64bit.tar.gz + - echo "004af6326a331f7e0e2ae2145a4263e36c9a15cb9dcf1d0d9dac4bbdf6d678d5 hugo_0.40.1_Linux-64bit.tar.gz" | md5sum -c + - tar xf hugo_0.40.1_Linux-64bit.tar.gz && cp ./hugo /usr/bin +deploy: + stage: deploy + script: + - npm install -g firebase-tools + - rm -rf public + - hugo + - firebase deploy --token $FIREBASE_DEPLOY_KEY \ No newline at end of file