From 8a06f72252ae5a0632ea890bf44d49d98d795878 Mon Sep 17 00:00:00 2001 From: James Haberland Date: Tue, 21 May 2024 12:04:00 -0500 Subject: [PATCH] Update docker.yml Updated deployment script, should auto-deploy to docker now --- .github/workflows/docker.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 9ccacd8..680dc59 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -48,12 +48,9 @@ jobs: tags: tag:gh-actions - name: Deploy - uses: appleboy/ssh-action@v1.0.0 - with: - host: ${{ secrets.DEPLOY_SSH_HOST }} - username: ${{ secrets.DEPLOY_SSH_USERNAME }} - key: ${{ secrets.DEPLOY_SSH_KEY }} - script_stop: true - script: | - dc run watchtower --no-startup-message --run-once dutch-fork-runners-gallery - dc up dutch-fork-runners-gallery --wait + run: | + ssh -o StrictHostKeyChecking=no ${{ secrets.DEPLOY_SSH_USERNAME }}@${{ secrets.DEPLOY_SSH_HOST }} ' + cd /docker + docker compose run watchtower --run-once --no-startup-message $(docker inspect -f '{{.Name}}' $(docker compose ps -q dutch-fork-runners-gallery) | cut -c2-) + docker compose up --wait dutch-fork-runners-gallery + '