From 39c0b6f6cdbdf14723e604af688924edf24cc010 Mon Sep 17 00:00:00 2001 From: Charles Tapley Hoyt Date: Wed, 24 Apr 2024 17:47:20 +0200 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 37b44c94a..e0af30738 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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