diff --git a/.woodpecker/deploy-rsync.yaml b/.woodpecker/deploy-rsync.yaml index 60b2c8a..f87b41d 100644 --- a/.woodpecker/deploy-rsync.yaml +++ b/.woodpecker/deploy-rsync.yaml @@ -2,6 +2,9 @@ when: - event: push branch: [main, staging] +variables: + - &SSH_PORT "2003" + steps: build: image: golang:1.22-bookworm @@ -22,7 +25,7 @@ steps: - RSYNC_TARGET_USER environment: - TARGET_PATH=/webroot/adora.codes - - RSYNC_TARGET_PORT=2003 + - *SSH_PORT commands: - apk add --update --no-cache openssh rsync git - mkdir -p $HOME/.ssh @@ -41,7 +44,7 @@ steps: - RSYNC_TARGET_USER environment: - TARGET_PATH=/webroot/www-staging.adora.codes - - RSYNC_TARGET_PORT=2003 + - *SSH_PORT commands: - apk add --update --no-cache openssh rsync git - mkdir -p $HOME/.ssh