blog/.gitlab-ci.yml
Louis Vallat 917cd61498
fix: added rsync to alpine build
Signed-off-by: Louis Vallat <contact@louis-vallat.fr>
2024-04-13 15:15:31 +02:00

22 lines
466 B
YAML

image: alpine
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- deploy
deploy:
stage: deploy
before_script:
- apk add openssh zola rsync
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
script:
- zola build
- rsync -e "ssh -o StrictHostKeyChecking=no -p $SSH_PORT" -rvz ./public/ $SSH_DESTINATION:/var/www/blog.louis-vallat.fr/ --delete
only:
- master