Kon/.gitea/workflows/deploy.yml
Renovate 41ea1fce70
All checks were successful
Build and push container image / build (push) Successful in 7m26s
Update appleboy/ssh-action action to v1.0.3 (#18)
Co-authored-by: Renovate <system@toast-server.net>
Co-committed-by: Renovate <system@toast-server.net>
2024-01-07 11:43:41 +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@029f5b4aeeeb58fdfe1410a5d17f967dacf36262 # v1.0.3
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