Automatically deploy changes on pushes to main
This commit is contained in:
parent
4bdcc90746
commit
1fe62dc410
1 changed files with 10 additions and 0 deletions
10
.github/workflows/docker-image.yml
vendored
10
.github/workflows/docker-image.yml
vendored
|
@ -20,3 +20,13 @@ jobs:
|
|||
repository: ${{ github.repository }}/${{ github.event.repository.name }}
|
||||
registry: docker.pkg.github.com
|
||||
tag_with_ref: true
|
||||
- name: Deploy
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
host: ${{ secrets.HOST }}
|
||||
username: ${{ secrets.USERNAME }}
|
||||
key: ${{ secrets.KEY }}
|
||||
script: |
|
||||
docker compose pull twigs
|
||||
docker compose up -d --build twigs
|
||||
docker image prune -f
|
||||
|
|
Loading…
Reference in a new issue