website/.gitlab-ci.yml
Louis Vallat 7201a3f571
feat: updated gitlab ci scripts
Signed-off-by: Louis Vallat <contact@louis-vallat.fr>
2024-07-27 13:15:00 +02:00

21 lines
441 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:
- rsync -e "ssh -o StrictHostKeyChecking=no -p $SSH_PORT" -rvz ./src/ $SSH_DESTINATION:/var/www/louis-vallat.fr/ --delete
only:
- master