web-bvebarcelona/.gitlab-ci.yml

26 lines
390 B
YAML
Raw Normal View History

2020-06-30 01:10:14 +02:00
image: monachus/hugo
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- apt-get update
2020-06-30 01:28:47 +02:00
- apt-get --yes install rsync
2020-06-30 01:10:14 +02:00
build:
stage: build
script:
- hugo
artifacts:
paths:
- public
only:
- master
deploy:
stage: deploy
script:
- rsync -hrv --delete public/ /var/opt/gitlab-runner/builds/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/
only:
- master