From 30d4e670d111d03f4684c36194e73aa17d79ae16 Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Mon, 15 Oct 2018 11:59:13 -0400 Subject: [PATCH] make hugo updates slightly easier --- .gitlab-ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a8b83f02..2bf1fc13 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,14 @@ image: node:alpine +variables: + HUGO_VERSION: '0.49.2' + HUGO_SHA: '74bcca80f549a1b66ec8a5264a9308ef7056b7bd31214f56dac05ffb9dfd32b3' + before_script: - apk update && apk add openssl - - wget https://github.com/gohugoio/hugo/releases/download/v0.49/hugo_0.49_Linux-64bit.tar.gz - - tar xf hugo_0.49_Linux-64bit.tar.gz && cp ./hugo /usr/bin + - wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz + - echo "${HUGO_SHA} ${HUGO_VERSION}.tar.gz" | sha256sum -c + - tar xf hugo_${HUGO_VERSION}_Linux-64bit.tar.gz && cp ./hugo /usr/bin - npm install --quiet firebase-tools -g deploy: