Skip to content

Commit

Permalink
Fix: 배포 시 docker rmi 코드 제거, 배포 조건 변경
Browse files Browse the repository at this point in the history
Fix: 배포 시 docker rmi 코드 제거, 배포 조건 변경
  • Loading branch information
seoyeonjin authored Jan 20, 2025
2 parents 984d738 + a09f239 commit d0de716
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Java CI with Gradle

on:
pull_request:
push:
branches: [ "dev" ]

jobs:
Expand Down Expand Up @@ -55,7 +55,6 @@ jobs:
script: |
docker stop cocos-container || true
docker rm cocos-container || true
docker rmi ${{ secrets.DOCKERHUB_USERNAME }}/cocos || true
docker pull ${{ secrets.DOCKERHUB_USERNAME }}/cocos
docker run -d -p 8080:8080 --name cocos-container \
${{ secrets.DOCKERHUB_USERNAME }}/cocos

0 comments on commit d0de716

Please sign in to comment.