Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Apr 24, 2024
1 parent a29b5bd commit 39c0b6f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ 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: |
echo $SSH_PRIVATE_KEY | ssh -i /dev/stdin "$HOST" "sh /data/services/restart_bioregistry.sh"
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
Expand Down

0 comments on commit 39c0b6f

Please sign in to comment.