2020-06-24 17:18:07 +02:00
|
|
|
image: monachus/hugo
|
|
|
|
|
|
|
|
variables:
|
|
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
|
|
|
2020-06-28 20:30:12 +02:00
|
|
|
before_script:
|
|
|
|
- apt-get update
|
|
|
|
- apt-get --yes install rsync
|
|
|
|
|
2020-06-24 17:18:07 +02:00
|
|
|
build:
|
2020-06-28 20:30:12 +02:00
|
|
|
stage: build
|
2020-06-24 17:18:07 +02:00
|
|
|
script:
|
|
|
|
- hugo
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
2020-06-28 20:30:12 +02:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
stage: deploy
|
|
|
|
script:
|
|
|
|
- rsync -hrv --delete public/ /var/opt/gitlab-runner/builds/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/
|