From dcdc5b56c28c7b9cd57d0c033cc1d341150e761a Mon Sep 17 00:00:00 2001 From: Ariya Hidayat Date: Thu, 28 Jul 2016 22:46:24 -0700 Subject: [PATCH] Install Hugo 0.16 on the fly and use it --- .gitlab-ci.yml | 11 +++++++++-- README.md | 9 ++++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e4f6492..b91bda3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,11 @@ -image: publysher/hugo +image: alpine:3.4 + +before_script: + - apk update && apk add openssl + - wget https://github.com/spf13/hugo/releases/download/v0.16/hugo_0.16_linux-64bit.tgz + - echo "37ee91ab3469afbf7602a091d466dfa5 hugo_0.16_linux-64bit.tgz" | md5sum -c + - tar xf hugo_0.16_linux-64bit.tgz && cp ./hugo /usr/bin + - hugo version test: script: @@ -13,4 +20,4 @@ pages: paths: - public only: - - master \ No newline at end of file + - master diff --git a/README.md b/README.md index a092776..79305ee 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,14 @@ This project's static Pages are built by [GitLab CI][ci], following the steps defined in [`.gitlab-ci.yml`](.gitlab-ci.yml): ``` -image: publysher/hugo +image: alpine:3.4 + +before_script: + - apk update && apk add openssl + - wget https://github.com/spf13/hugo/releases/download/v0.16/hugo_0.16_linux-64bit.tgz + - echo "37ee91ab3469afbf7602a091d466dfa5 hugo_0.16_linux-64bit.tgz" | md5sum -c + - tar xf hugo_0.16_linux-64bit.tgz && cp ./hugo /usr/bin + - hugo version pages: script: