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