chore(ci): update deployment settings
All checks were successful
ci/woodpecker/push/web Pipeline was successful
All checks were successful
ci/woodpecker/push/web Pipeline was successful
This commit is contained in:
parent
fafb77dbb3
commit
bf976c7f48
2 changed files with 7 additions and 4 deletions
|
@ -1,5 +1,8 @@
|
|||
branches: [ci, master, deploy]
|
||||
pipeline:
|
||||
when:
|
||||
branch: [master, ci, deploy]
|
||||
event: push
|
||||
|
||||
steps:
|
||||
build:
|
||||
image: node:18-alpine
|
||||
commands:
|
||||
|
@ -12,7 +15,7 @@ pipeline:
|
|||
- echo $${AGE_KEY} > ./deploy/age_key_priv
|
||||
- age --decrypt -i ./deploy/age_key_priv -o ./deploy/ssh_key_dec ./deploy/ssh_key
|
||||
- chmod 600 ./deploy/ssh_key_dec
|
||||
- rsync -avz --delete -e "ssh -p 2222 -i $PWD/deploy/ssh_key_dec -o UserKnownHostsFile=$PWD/deploy/known_hosts" dist/ www@192.168.128.90:/www
|
||||
- rsync -avz --delete -e "ssh -p 2222 -i $PWD/deploy/ssh_key_dec -o UserKnownHostsFile=$PWD/deploy/known_hosts" dist/ www@192.168.30.215:/www/site
|
||||
- rm -rf deploy
|
||||
secrets: [age_key]
|
||||
when:
|
||||
|
|
|
@ -1 +1 @@
|
|||
[192.168.128.90]:2222 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMOsoyWzBvwnrX3UqUIfxwzKwI3iHrA1MB+ZeY1+EToM
|
||||
[192.168.30.215]:2222 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII+tVh2XZOdnoZ4ByHYwmLaWLXsVcYhmKo6ucvmYo2lf
|
||||
|
|
Loading…
Reference in a new issue