Skip to content

Commit

Permalink
chore: docker 컨테이너 없을 때, 예외처리
Browse files Browse the repository at this point in the history
  • Loading branch information
kitaee committed Jan 6, 2025
1 parent bdd3bb4 commit 4a0a43f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
username: ubuntu
key: ${{ secrets.KEY }}
script: |
sudo docker rm -f $(docker ps -qa)
sudo docker pull ${{ secrets.DOCKER_REPO }}/directors-dev
docker-compose up -d
docker image prune -f
sudo docker pull ${{ secrets.DOCKER_USERNAME }}
sudo docker stop $(sudo docker ps -q) 2>/dev/null || true
sudo docker run --name github-actions-demo --rm -d -p 8080:8080 ${{ secrets.DOCKER_USERNAME }}
sudo docker system prune -f

0 comments on commit 4a0a43f

Please sign in to comment.