forked from Mirror/pmbootstrap
CI: Add docs deployment job (MR 2316)
Tweaked-By: Oliver Smith <ollieparanoid@postmarketos.org>
This commit is contained in:
parent
e9faee3747
commit
048f24cf50
1 changed files with 16 additions and 0 deletions
|
@ -17,6 +17,7 @@ before_script: &global_before_scripts
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- lint
|
- lint
|
||||||
|
- deploy
|
||||||
- test
|
- test
|
||||||
|
|
||||||
codespell:
|
codespell:
|
||||||
|
@ -72,3 +73,18 @@ docs:
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
stage: deploy
|
||||||
|
before_script:
|
||||||
|
- apk -q add openssh-client rsync
|
||||||
|
script:
|
||||||
|
- mkdir "${HOME}/.ssh"
|
||||||
|
- echo "${SSH_HOST_KEY}" > "${HOME}/.ssh/known_hosts"
|
||||||
|
- echo "${SSH_PRIVATE_KEY}" > "${HOME}/.ssh/id_ed25519"
|
||||||
|
- chmod 700 "${HOME}/.ssh/id_ed25519"
|
||||||
|
- rsync -hrvz --delete -e "ssh -p ${SSH_PORT}" public/ "${SSH_HOST}":/var/www/docs.postmarketos.org/pmbootstrap/
|
||||||
|
environment:
|
||||||
|
name: deploy
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue