26 lines
694 B
YAML
26 lines
694 B
YAML
name: deploy
|
|
|
|
#on:
|
|
# workflow_run:
|
|
# workflows: [release]
|
|
# types: [completed]
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
deploy:
|
|
#if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: appleboy/ssh-action@v1
|
|
with:
|
|
host: ${{ secrets.DEPLOY_HOST }}
|
|
port: ${{ secrets.DEPLOY_PORT }}
|
|
username: ${{ secrets.DEPLOY_USERNAME }}
|
|
key: ${{ secrets.DEPLOY_KEY }}
|
|
passphrase: ${{ secrets.DEPLOY_PASSPHRASE }}
|
|
script: |
|
|
cd /opt/gallery
|
|
/Volume1/@apps/DockerEngine/dockerd/bin/docker-compose pull
|
|
/Volume1/@apps/DockerEngine/dockerd/bin/docker-compose up -d
|