Skip to content

Commit

Permalink
ci: deploy?
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Apr 28, 2023
1 parent a75191a commit 53936db
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,21 @@ jobs:
with:
authkey: ${{ steps.auth-key.outputs.auth-key }}

- name: Test hypervisor is up
- name: Configure SSH
run: |
ping -c 1 hypervisor.zebra-catfish.ts.net
mkdir -p ~/.ssh/
echo "$SSH_KEY" > ~/.ssh/production.key
chmod 600 ~/.ssh/staging.key
cat >>~/.ssh/config <<END
Host production
HostName $SSH_HOST
User root
IdentityFile ~/.ssh/staging.key
StrictHostKeyChecking no
END
env:
SSH_KEY: ${{ secrets.DEPLOYMENT_SSH_KEY }}
SSH_HOST: ${{ secrets.DEPLOYMENT_HOST }}

- name: Test hypervisor is up
run: |
ping -c 1 10.144.95.81
- name: Stop the server
run: ssh production

0 comments on commit 53936db

Please sign in to comment.