Skip to content

Commit

Permalink
ci: auto update dragonite on remote server
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Jan 13, 2024
1 parent e8ec5d6 commit 2fa52d3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,19 @@ jobs:
context: ./
file: Dockerfile
tags: ghcr.io/favware/dragonite:latest

UpdateOnServer:
name: Update running container on server
runs-on: ubuntu-latest
needs: PublishDragonite
steps:
- name: Update container on server
uses: favware/ssh-remote-action@v1
with:
host: ${{ secrets.SSH_HOST }}
port: ${{ secrets.SSH_PORT }}
key: ${{ secrets.SSH_KEY }}
passphrase: ${{ secrets.SSH_KEY_PASSPHRASE }}
username: ${{ secrets.SSH_USERNAME }}
command: ${{ secrets.SSH_COMMAND }}
silent: true

0 comments on commit 2fa52d3

Please sign in to comment.