From 2966358f25003541ff229b90673543fcac4b3098 Mon Sep 17 00:00:00 2001 From: Thomas Schwery Date: Fri, 17 Apr 2020 15:06:32 +0200 Subject: [PATCH] Download an official gohugo release instead of building it --- .gitlab-ci.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 041cd31..9777fd1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,15 +1,12 @@ -image: golang:1.12 - variables: S3_BUCKET_NAME: thomas.inf3.ch AWS_BUCKET_REGION: us-east-1 gohugo-build-branch: + image: curlimages/curl:7.69.1 script: - - git submodule sync --recursive - - git submodule update --init --recursive - - go get github.com/gohugoio/hugo - - hugo -b http://${S3_BUCKET_NAME}.s3-website-${AWS_BUCKET_REGION}.amazonaws.com/${CI_COMMIT_REF_SLUG} + - curl -SsL https://github.com/gohugoio/hugo/releases/download/v0.63.2/hugo_0.63.2_Linux-64bit.tar.gz | tar zxvf - hugo + - ./hugo -b http://${S3_BUCKET_NAME}.s3-website-${AWS_BUCKET_REGION}.amazonaws.com/${CI_COMMIT_REF_SLUG} artifacts: expire_in: 1 week paths: @@ -18,11 +15,10 @@ gohugo-build-branch: - /^master$/ gohugo-build-master: + image: curlimages/curl:7.69.1 script: - - git submodule sync --recursive - - git submodule update --init --recursive - - go get github.com/gohugoio/hugo - - hugo + - curl -SsL https://github.com/gohugoio/hugo/releases/download/v0.63.2/hugo_0.63.2_Linux-64bit.tar.gz | tar zxvf - hugo + - ./hugo artifacts: expire_in: 1 week paths: @@ -31,7 +27,7 @@ gohugo-build-master: - /^master$/ deploys3-branch: - image: "python:latest" + image: python:latest stage: deploy before_script: - pip install awscli @@ -58,7 +54,7 @@ deploys3-master: - /^master$/ deploys3-clean: - image: "python:latest" + image: python:latest stage: deploy before_script: - pip install awscli