Skip to content

Commit

Permalink
Add deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Apr 24, 2024
1 parent 96a2bce commit 6264e7c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Release
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run SSH command
env:
SSH_PRIVATE_KEY: ${{ secrets.AWS_PEM }}
HOST: ${{ secrets.AWS_HOST }}
run: |
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh -o StrictHostKeyChecking=no "$HOST" "sh /data/services/restart_bioregistry.sh"

0 comments on commit 6264e7c

Please sign in to comment.