Kon/.gitea/workflows/deploy.yml
Renovate 7a5e9a6074
All checks were successful
Build and push container image / build (push) Successful in 7m4s
Update appleboy/ssh-action digest to 4330a1e (#3)
Co-authored-by: Renovate <system@toast-server.net>
Co-committed-by: Renovate <system@toast-server.net>
2023-12-08 11:26:24 +00:00

20 lines
610 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@4330a1ea489ced98a6778fb35bb6bfed8b61fca5
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