Skip to content

Commit

Permalink
🔨 fix : add sudo to docker script
Browse files Browse the repository at this point in the history
  • Loading branch information
ddoddii committed Jan 11, 2024
1 parent f551d62 commit a0bc46a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,10 @@ jobs:
# 새로운 이미지 기반으로 컨테이너 실행
script: |
sudo docker ps -a --filter "name=${{ secrets.PROJECT_NAME }}" | xargs -r docker stop
sudo docker ps -a --filter "name=${{ secrets.PROJECT_NAME }}" | xargs -r docker kill
sudo docker ps -a --filter "name=${{ secrets.PROJECT_NAME }}" | xargs -r docker rm -f
sudo docker ps -a --filter "name=${{ secrets.PROJECT_NAME }}" | xargs -r sudo docker stop
sudo docker ps -a --filter "name=${{ secrets.PROJECT_NAME }}" | xargs -r sudo docker kill
sudo docker ps -a --filter "name=${{ secrets.PROJECT_NAME }}" | xargs -r sudo docker rm -f
sudo docker rmi ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.PROJECT_NAME }}
sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.PROJECT_NAME }}
Expand Down

0 comments on commit a0bc46a

Please sign in to comment.