Build and deploy in CI

main
Marc Riera Irigoyen 2020-06-28 20:30:12 +02:00
parent 7dcb63484b
commit cae595f6ea
1 changed files with 10 additions and 2 deletions

View File

@ -3,11 +3,19 @@ image: monachus/hugo
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- apt-get update
- apt-get --yes install rsync
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/