Skip to content

Commit

Permalink
Update docker.yml
Browse files Browse the repository at this point in the history
Updated deployment script, should auto-deploy to docker now
  • Loading branch information
jrhaberland authored May 21, 2024
1 parent e7c2ad5 commit 8a06f72
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,9 @@ jobs:
tags: tag:gh-actions

- name: Deploy
uses: appleboy/[email protected]
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
'

0 comments on commit 8a06f72

Please sign in to comment.