2024-07-27 13:15:00 +02:00
|
|
|
image: alpine
|
2021-09-23 10:42:33 +02:00
|
|
|
|
|
|
|
variables:
|
2024-07-27 13:15:00 +02:00
|
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
2021-09-23 10:42:33 +02:00
|
|
|
|
2024-07-27 13:15:00 +02:00
|
|
|
stages:
|
|
|
|
- deploy
|
2021-09-23 10:42:33 +02:00
|
|
|
|
2021-09-24 10:14:57 +02:00
|
|
|
deploy:
|
|
|
|
stage: deploy
|
|
|
|
before_script:
|
2024-07-27 13:15:00 +02:00
|
|
|
- apk add openssh zola rsync
|
2021-09-24 10:14:57 +02:00
|
|
|
- eval $(ssh-agent -s)
|
|
|
|
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
|
|
|
- mkdir -p ~/.ssh
|
|
|
|
- chmod 700 ~/.ssh
|
|
|
|
script:
|
2024-07-27 13:26:56 +02:00
|
|
|
- rsync -e "ssh -o StrictHostKeyChecking=no -p $SSH_PORT" -rvz ./src/ $SSH_DESTINATION:/var/www/louis-vallat.dev/ --delete
|
2021-09-24 10:24:55 +02:00
|
|
|
only:
|
|
|
|
- master
|