Skip to content

Commit

Permalink
Merge pull request #170 from sparcs-kaist/feat/add-script-stop-on-cd-…
Browse files Browse the repository at this point in the history
…pipeline
  • Loading branch information
withSang authored Sep 16, 2023
2 parents d0e8b57 + 0db20b5 commit 33d5eae
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/dev-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@ jobs:
if: ${{ github.event.workflow_run.conclusion == 'success' }}

steps:
- name: executing remote ssh commands using password
- name: pull the image and restart the container
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.HOST }}
port: ${{ secrets.PORT }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
proxy_host: ${{ secrets.PROXY_HOST }}
proxy_port: ${{ secrets.PROXY_PORT }}
proxy_username: ${{ secrets.PROXY_USERNAME }}
proxy_password: ${{ secrets.PROXY_PASSWORD }}
host: ${{ secrets.DEV_HOST }}
port: ${{ secrets.DEV_PORT }}
username: ${{ secrets.DEV_USERNAME }}
password: ${{ secrets.DEV_PASSWORD }}
proxy_host: ${{ secrets.DEV_PROXY_HOST }}
proxy_port: ${{ secrets.DEV_PROXY_PORT }}
proxy_username: ${{ secrets.DEV_PROXY_USERNAME }}
proxy_password: ${{ secrets.DEV_PROXY_PASSWORD }}
script_stop: true # stop script if any command has failed
script: |
docker pull ghcr.io/sparcs-kaist/zabo-front:dev
docker rm -f zabo-front
Expand Down

0 comments on commit 33d5eae

Please sign in to comment.