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
0daa920ceb
2 changed files with 7 additions and 4 deletions
|
@ -1,5 +1,8 @@
|
||||||
branches: [ci, master, deploy]
|
when:
|
||||||
pipeline:
|
branches: [master, ci, deploy]
|
||||||
|
event: push
|
||||||
|
|
||||||
|
steps:
|
||||||
build:
|
build:
|
||||||
image: node:18-alpine
|
image: node:18-alpine
|
||||||
commands:
|
commands:
|
||||||
|
@ -12,7 +15,7 @@ pipeline:
|
||||||
- echo $${AGE_KEY} > ./deploy/age_key_priv
|
- echo $${AGE_KEY} > ./deploy/age_key_priv
|
||||||
- age --decrypt -i ./deploy/age_key_priv -o ./deploy/ssh_key_dec ./deploy/ssh_key
|
- age --decrypt -i ./deploy/age_key_priv -o ./deploy/ssh_key_dec ./deploy/ssh_key
|
||||||
- chmod 600 ./deploy/ssh_key_dec
|
- 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
|
||||||
- rm -rf deploy
|
- rm -rf deploy
|
||||||
secrets: [age_key]
|
secrets: [age_key]
|
||||||
when:
|
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