Build the branches with the correct base url

This commit is contained in:
Thomas Schwery 2019-10-18 22:39:42 +02:00
parent b2d87e3ad4
commit 3ecb2a874b

View file

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