Kon/.gitea/workflows/deploy.yml
toast 6076e1b3c7
Some checks failed
Build and push container image / build (push) Has been cancelled
Add version identifier
2023-12-30 13:50:15 +00:00

20 lines
619 B
YAML

name: Deploy to host
on:
registry_package:
types: [published]
jobs:
deploy:
runs-on: ubuntu-22.04-node
steps:
- name: SSH into Docker Host
uses: appleboy/ssh-action@8f949198563a347a01c65ffc60399aef2b59d4ab # v1.0.1
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
passphrase: ${{ secrets.SSH_PASSPHRASE }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
script: |
cd kon && docker compose pull && \
docker compose up -d --remove-orphans && docker image prune -f