Files
gallery/.gitea/workflows/deploy.yaml
T
shmyga fdb0d4d405
release / release (push) Successful in 50s
test / test (push) Successful in 55s
ci(action): add deploy action
2026-09-30 19:15:46 +03:00

22 lines
501 B
YAML

name: deploy
on:
workflow_run:
workflows: [release]
types: [completed]
jobs:
deploy:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USERNAME }}
key: ${{ secrets.DEPLOY_KEY }}
script: |
cd /opt/gallery
docker compose pull
docker compose up -d