-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated deployment script, should auto-deploy to docker now
- Loading branch information
1 parent
e7c2ad5
commit 8a06f72
Showing
1 changed file
with
6 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
' |