Skip to content

Commit

Permalink
fix: remove redundant docker compose scripts on ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
javokhirm committed Feb 12, 2024
1 parent 8f28b6f commit 51b5f2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ jobs:
key: ${{ secrets.EC2_PRIVATE_KEY }}
port: ${{ secrets.EC2_PORT }}
script: |
docker compose down
docker compose rm -f ${{env.DOCKER_CONTAINER_NAME}}
docker compose pull ${{env.DOCKER_CONTAINER_NAME}}
docker compose up -d ${{env.DOCKER_CONTAINER_NAME}}
docker image prune -f
3 changes: 1 addition & 2 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ jobs:
key: ${{ secrets.EC2_PRIVATE_KEY }}
port: ${{ secrets.EC2_PORT }}
script: |
docker compose down
docker compose rm -f ${{env.DOCKER_CONTAINER_NAME}}
docker compose pull ${{env.DOCKER_CONTAINER_NAME}}
docker compose up -d ${{env.DOCKER_CONTAINER_NAME}}
docker image prune -f

0 comments on commit 51b5f2d

Please sign in to comment.