Add conditions
This commit is contained in:
parent
d1966ed564
commit
0e05560cb3
1 changed files with 4 additions and 1 deletions
|
@ -12,5 +12,8 @@ steps:
|
|||
- echo "$SSH_STAGING_KEY" > ~/.ssh/staging.key
|
||||
- chmod 600 ~/.ssh/staging.key
|
||||
- ssh -i ~/.ssh/staging.key -p $${PORT} $${USER}@$${HOST} "rm -rf /srv/hadeedahmad-xyz"
|
||||
- scp -ri ~/.ssh/staging.key -P $${PORT} . $${USER}@$${HOST}:/srv/hadeedahmad-xyz
|
||||
- scp -ri ~/.ssh/staging.key -P $${PORT} * $${USER}@$${HOST}:/srv/hadeedahmad-xyz
|
||||
secrets: [ SSH_STAGING_KEY ]
|
||||
when:
|
||||
- event: push
|
||||
branch: main
|
||||
|
|
Loading…
Reference in a new issue