Skip to content

Commit

Permalink
perf:替换构建内容
Browse files Browse the repository at this point in the history
  • Loading branch information
tahitimoon committed Jul 14, 2024
1 parent 0d8f893 commit 625fc76
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,14 @@ jobs:
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd ${{ secrets.SSH_DIR }}
docker stop $(docker ps -aq)
docker rm $(docker ps -aq)
docker rmi $(docker images -q)
sudo docker compose up -d
docker stop lunar-link-web lunar-link-django lunar-link-celery
docker rm lunar-link-web lunar-link-django lunar-link-celery
docker rmi ${{ secrets.DOCKER_HUB_ADDR }}/${{ secrets.DOCKER_NAMESPACE }}/web:${{ vars.VERSION }}
docker rmi ${{ secrets.DOCKER_HUB_ADDR }}/${{ secrets.DOCKER_NAMESPACE }}/django:${{ vars.VERSION }}
docker rmi ${{ secrets.DOCKER_HUB_ADDR }}/${{ secrets.DOCKER_NAMESPACE }}/celery:${{ vars.VERSION }}
sudo docker compose up -d lunar-link-web lunar-link-django lunar-link-celery
# cd ${{ secrets.SSH_DIR }}
# docker stop $(docker ps -aq)
# docker rm $(docker ps -aq)
# docker rmi $(docker images -q)
# sudo docker compose up -d

0 comments on commit 625fc76

Please sign in to comment.