Skip to content

Commit

Permalink
Deploy without docker-compose down
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjndw committed May 26, 2024
1 parent efa5f4e commit 67f6960
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/deploy_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,6 @@ jobs:
name: ${{ inputs.environment }}
url: 'https://${{ vars.SERVER_HOST }}'
steps:
- name: SSH to VM and Execute Docker-Compose Down
uses: appleboy/[email protected]
with:
host: ${{ vars.VM_HOST }}
username: ${{ vars.VM_USERNAME }}
key: ${{ secrets.VM_SSH_PRIVATE_KEY }}
proxy_host: ${{ vars.DEPLOYMENT_GATEWAY_HOST }}
proxy_username: ${{ vars.DEPLOYMENT_GATEWAY_USER }}
proxy_key: ${{ secrets.DEPLOYMENT_GATEWAY_SSH_KEY }}
proxy_port: ${{ vars.DEPLOYMENT_GATEWAY_PORT }}
script: |
docker compose -f docker-compose.prod.yml --env-file=.env.prod down --remove-orphans --rmi all
- name: checkout
uses: actions/checkout@v4

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Build and Deploy to Dev

on:
pull_request:
branches: [main]
push:
branches: [ci/fix-pipeline]

jobs:
build-dev-container:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build and Deploy to Prod

on:
push:
branches: [main]
branches: [ci/fix-pipeline]

jobs:
build-prod-container:
Expand Down

0 comments on commit 67f6960

Please sign in to comment.