Enable gitlab ci
This commit is contained in:
parent
4aac33dc2d
commit
98f20cc78c
29
.gitlab-ci.yml
Normal file
29
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,29 @@
|
|||
# All available Hugo versions are listed here: https://gitlab.com/pages/hugo/container_registry
|
||||
# image: registry.gitlab.com/pages/hugo:latest
|
||||
image: monachus/hugo:latest
|
||||
|
||||
before_script:
|
||||
- apt-get update
|
||||
- apt-get --yes --force-yes install git ssh rsync
|
||||
- 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
|
Loading…
Reference in New Issue
Block a user