Verified Commit 9564facc authored by Marc Schmitt's avatar Marc Schmitt
Browse files

ci: switch to GitLab pages


Signed-off-by: Marc Schmitt's avatarMarc 'risson' Schmitt <risson@cri.epita.fr>
parent 08ea11d8
Pipeline #152821 passed with stages
in 1 minute and 6 seconds
---
stages:
- site-builder
- build
- deploy
- site-publisher
.template: &template
stage: site-publisher
image:
name: banst/awscli:1.18.76
entrypoint: [""]
dependencies:
- site-builder
script:
- aws s3 --endpoint-url https://s3.cri.epita.fr/ sync $(pwd)/site $CRI_BUCKET --acl public-read --delete
site-builder:
stage: site-builder
build:
stage: build
image:
name: squidfunk/mkdocs-material:5.5.14
entrypoint: [""]
......@@ -24,20 +17,14 @@ site-builder:
paths:
- site
site-publisher:release:
<<: *template
pages:
stage: deploy
dependencies:
- build
script:
- cp -R site public
artifacts:
paths:
- public
only:
- master
variables:
AWS_SECRET_ACCESS_KEY: $cri_doc_secret
AWS_ACCESS_KEY_ID: $cri_doc_access
CRI_BUCKET: $cri_doc_bucket
site-publisher:dev:
<<: *template
except:
- master
variables:
AWS_SECRET_ACCESS_KEY: $cri_doc_dev_secret
AWS_ACCESS_KEY_ID: $cri_doc_dev_access
CRI_BUCKET: $cri_doc_dev_bucket
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment