Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dekiakbar authored Feb 7, 2024
1 parent 6ca5d9c commit cb0d7c9
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Deploy

on:
workflow_dispatch:
workflow_run:
workflows: ["Test"]
types:
- completed
# workflow_run:
# workflows: ["Test"]
# types:
# - completed
pull_request:
types:
- closed
Expand All @@ -19,3 +19,15 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Deploy to vps
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: 22
command_timeout: 30m
script: |
cd image-optimizer
git pull origin master
docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d --no-deps --build

0 comments on commit cb0d7c9

Please sign in to comment.