This commit is contained in:
parent
0c92e07866
commit
d591813b8b
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue