2021-11-21 04:12:59 +00:00
|
|
|
# This file is a template, and might need editing before it works on your project.
|
|
|
|
# To contribute improvements to CI/CD templates, please follow the Development guide at:
|
|
|
|
# https://docs.gitlab.com/ee/development/cicd/templates.html
|
|
|
|
# This specific template is located at:
|
|
|
|
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Pages/HTML.gitlab-ci.yml
|
2020-06-14 06:48:14 +00:00
|
|
|
|
2021-11-21 04:12:59 +00:00
|
|
|
# Full project: https://gitlab.com/pages/plain-html
|
2020-06-14 06:48:14 +00:00
|
|
|
|
|
|
|
variables:
|
|
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
|
|
|
2021-11-21 04:52:11 +00:00
|
|
|
build-stage:
|
2021-11-21 04:48:51 +00:00
|
|
|
stage: build
|
2021-11-21 04:39:57 +00:00
|
|
|
image: monachus/hugo:latest
|
2021-11-21 04:40:23 +00:00
|
|
|
script:
|
2021-11-21 04:39:57 +00:00
|
|
|
- hugo
|
2021-11-21 05:14:19 +00:00
|
|
|
- ls
|
2021-11-21 05:27:48 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
2021-11-21 04:39:57 +00:00
|
|
|
|
2021-11-21 04:52:11 +00:00
|
|
|
deploy-stage:
|
2021-11-21 04:12:59 +00:00
|
|
|
stage: deploy
|
2021-11-21 04:33:49 +00:00
|
|
|
image: minio/mc:latest
|
2020-06-14 06:48:14 +00:00
|
|
|
script:
|
2021-11-21 05:24:48 +00:00
|
|
|
- ls
|
2021-11-21 04:12:59 +00:00
|
|
|
- mkdir .public
|
2021-11-21 05:34:35 +00:00
|
|
|
- cp -r public/ .public
|
2021-11-21 04:12:59 +00:00
|
|
|
- mc config host add minio http://minio.diskstation.local:80 J5EUEGIEB9BIL5UCPWRF 1SOPPciiXvWiVICzRy45xC5Nw1LNNDWWd0KSQyxW
|
2021-11-21 04:55:23 +00:00
|
|
|
- mc cp -r .public/ minio/eric-personal
|
2020-06-14 06:48:14 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2021-11-21 04:12:59 +00:00
|
|
|
- .public
|
2021-11-21 04:52:11 +00:00
|
|
|
dependencies:
|
|
|
|
- build-stage
|
2021-11-21 04:12:59 +00:00
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|