This commit is contained in:
@@ -1,13 +1,15 @@
|
|||||||
name: deploy
|
name: deploy
|
||||||
|
|
||||||
on:
|
#on:
|
||||||
workflow_run:
|
# workflow_run:
|
||||||
workflows: [release]
|
# workflows: [release]
|
||||||
types: [completed]
|
# types: [completed]
|
||||||
|
|
||||||
|
on: push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
#if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: appleboy/ssh-action@v1
|
- uses: appleboy/ssh-action@v1
|
||||||
@@ -19,5 +21,5 @@ jobs:
|
|||||||
passphrase: ${{ secrets.DEPLOY_PASSPHRASE }}
|
passphrase: ${{ secrets.DEPLOY_PASSPHRASE }}
|
||||||
script: |
|
script: |
|
||||||
cd /opt/gallery
|
cd /opt/gallery
|
||||||
docker-compose pull
|
/Volume1/@apps/DockerEngine/dockerd/bin/docker-compose pull
|
||||||
docker-compose up -d
|
/Volume1/@apps/DockerEngine/dockerd/bin/docker-compose up -d
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
name: test
|
name: test
|
||||||
|
|
||||||
on: push
|
#on: push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
|||||||
Reference in New Issue
Block a user