Update .gitlab-ci.yml to use Gitlab pages all the times.
This commit is contained in:
parent
1fa2b10a35
commit
b03b193468
|
@ -1,18 +1,11 @@
|
||||||
image: registry.gitlab.com/pages/hugo/hugo_extended:latest
|
image: registry.gitlab.com/pages/hugo/hugo_extended:latest
|
||||||
|
|
||||||
before_script:
|
variables:
|
||||||
- apk add --update --no-cache git openssh rsync
|
GIT_SUBMODULE_STRATEGY: recursive
|
||||||
- git submodule update --init --recursive
|
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
script:
|
script:
|
||||||
- hugo
|
- 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:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
|
Loading…
Reference in New Issue
Block a user