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
|
- event: push
|
||||||
branch: [main, staging]
|
branch: [main, staging]
|
||||||
|
|
||||||
|
variables:
|
||||||
|
- &SSH_PORT "2003"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
build:
|
build:
|
||||||
image: golang:1.22-bookworm
|
image: golang:1.22-bookworm
|
||||||
|
@ -22,7 +25,7 @@ steps:
|
||||||
- RSYNC_TARGET_USER
|
- RSYNC_TARGET_USER
|
||||||
environment:
|
environment:
|
||||||
- TARGET_PATH=/webroot/adora.codes
|
- TARGET_PATH=/webroot/adora.codes
|
||||||
- RSYNC_TARGET_PORT=2003
|
- *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
|
||||||
|
@ -41,7 +44,7 @@ steps:
|
||||||
- RSYNC_TARGET_USER
|
- RSYNC_TARGET_USER
|
||||||
environment:
|
environment:
|
||||||
- TARGET_PATH=/webroot/www-staging.adora.codes
|
- TARGET_PATH=/webroot/www-staging.adora.codes
|
||||||
- RSYNC_TARGET_PORT=2003
|
- *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
|
||||||
|
|
Loading…
Reference in a new issue