Skip to content

Commit

Permalink
split deploy steps into upload, unzip, restart
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerum committed Nov 14, 2023
1 parent cec999f commit f8c1120
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,21 @@ jobs:
eval `ssh-agent -s`
ssh-add - <<< "${{secrets.SSH_PRIVATE_KEY}}"
scp build.zip [email protected]:~/html/HEAD/
- name: unzip
run: |
ssh-keyscan -H ara.uberspace.de >> ~/.ssh/known_hosts
eval `ssh-agent -s`
ssh-add - <<< "${{secrets.SSH_PRIVATE_KEY}}"
ssh [email protected] 'rm -rf ~/html/HEAD/.next'
ssh [email protected] 'unzip -d ~/html/HEAD/ ~/html/HEAD/build.zip'
- name: restart
run: |
ssh-keyscan -H ara.uberspace.de >> ~/.ssh/known_hosts
eval `ssh-agent -s`
ssh-add - <<< "${{secrets.SSH_PRIVATE_KEY}}"
ssh [email protected] 'supervisorctl stop beta'
ssh [email protected] '/home/duostori/html/kill_rouge_workers.py'
ssh [email protected] '/home/duostori/html/kill_port_users.py beta'
Expand Down

0 comments on commit f8c1120

Please sign in to comment.