Build the branches with the correct base url
This commit is contained in:
parent
b2d87e3ad4
commit
3ecb2a874b
1 changed files with 16 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue