This commit is contained in:
parent
bba0322bda
commit
8c15e6abb9
|
@ -22,9 +22,9 @@ steps:
|
||||||
- echo "$${SSH_KEY}" > ~/.ssh/id_ed25519
|
- echo "$${SSH_KEY}" > ~/.ssh/id_ed25519
|
||||||
- chmod 600 ~/.ssh/id_ed25519
|
- chmod 600 ~/.ssh/id_ed25519
|
||||||
- ssh -o "StrictHostKeyChecking no"
|
- ssh -o "StrictHostKeyChecking no"
|
||||||
cicd@cpx.servers.sapti.me "rm -rf /opt/apps/nginx/website/public/*"
|
cicd@cpx.servers.sapti.me "rm -rf /opt/docker/nginx/website/public/*"
|
||||||
- scp -o "StrictHostKeyChecking no" -r
|
- scp -o "StrictHostKeyChecking no" -r
|
||||||
./public cicd@cpx.servers.sapti.me:/opt/apps/nginx/website
|
./public cicd@cpx.servers.sapti.me:/opt/docker/nginx/website
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
|
|
Loading…
Reference in a new issue