From 3ecb2a874b5428894a0423e8138c94045fea62c7 Mon Sep 17 00:00:00 2001 From: Thomas Schwery Date: Fri, 18 Oct 2019 22:39:42 +0200 Subject: [PATCH] Build the branches with the correct base url --- .gitlab-ci.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e12e075..041cd31 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,20 @@ variables: S3_BUCKET_NAME: thomas.inf3.ch AWS_BUCKET_REGION: us-east-1 -gohugo-build: +gohugo-build-branch: + 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} + artifacts: + expire_in: 1 week + paths: + - public + except: + - /^master$/ + +gohugo-build-master: script: - git submodule sync --recursive - git submodule update --init --recursive @@ -14,6 +27,8 @@ gohugo-build: expire_in: 1 week paths: - public + only: + - /^master$/ deploys3-branch: image: "python:latest"