yaml anchors pt2
All checks were successful
ci/woodpecker/push/deploy-rsync Pipeline was successful

This commit is contained in:
Adora Laura Kalb 2024-07-15 10:59:54 +02:00
parent d591813b8b
commit 97cea76955
Signed by: adoralaura
SSH key fingerprint: SHA256:3XrkbR8ikAZJVtYfaUliX1MhmJYVAe/ocIb/MiDHBJ8

View file

@ -3,7 +3,7 @@ when:
branch: [main, staging] branch: [main, staging]
variables: variables:
- &SSH_PORT "2003" - &SSH_PORT '2003'
steps: steps:
build: build:
@ -24,8 +24,8 @@ steps:
- RSYNC_TARGET_SERVER - RSYNC_TARGET_SERVER
- RSYNC_TARGET_USER - RSYNC_TARGET_USER
environment: environment:
- TARGET_PATH=/webroot/adora.codes TARGET_PATH: /webroot/adora.codes
- *SSH_PORT RSYNC_TARGET_PORT: *SSH_PORT
commands: commands:
- apk add --update --no-cache openssh rsync git - apk add --update --no-cache openssh rsync git
- mkdir -p $HOME/.ssh - mkdir -p $HOME/.ssh
@ -43,8 +43,8 @@ steps:
- RSYNC_TARGET_SERVER - RSYNC_TARGET_SERVER
- RSYNC_TARGET_USER - RSYNC_TARGET_USER
environment: environment:
- TARGET_PATH=/webroot/www-staging.adora.codes TARGET_PATH: /webroot/adora.codes
- *SSH_PORT RSYNC_TARGET_PORT: *SSH_PORT
commands: commands:
- apk add --update --no-cache openssh rsync git - apk add --update --no-cache openssh rsync git
- mkdir -p $HOME/.ssh - mkdir -p $HOME/.ssh