devroom.io/.gitlab-ci.yml

27 lines
580 B
YAML
Raw Normal View History

2021-07-14 07:42:31 +00:00
image: registry.gitlab.com/pages/hugo/hugo_extended:latest
2021-07-09 09:13:46 +00:00
before_script:
2021-07-14 07:42:31 +00:00
- apk add --update --no-cache git openssh rsync
2021-07-09 09:13:46 +00:00
- git submodule update --init --recursive
pages:
script:
- hugo
- mkdir "${HOME}/.ssh"
- echo "${SSH_HOST_KEY}" > "${HOME}/.ssh/known_hosts"
- echo "${SSH_PRIVATE_KEY}" > "${HOME}/.ssh/id_rsa"
- chmod 700 "${HOME}/.ssh/id_rsa"
- rsync -hrvz --delete --exclude=_ public/ ariejan@10.0.2.40:/home/ariejan/www/www.devroom.io/
artifacts:
paths:
- public
only:
- master
test:
script:
- hugo
except:
- master