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

make hugo updates slightly easier

This commit is contained in:
2018-10-15 11:59:13 -04:00
parent 5f37ce067f
commit 30d4e670d1

View File

@@ -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: