Skip to content

Commit

Permalink
Merge pull request #79 from KU-Taverse/fix/map
Browse files Browse the repository at this point in the history
CD 수정
  • Loading branch information
david-parkk authored Oct 7, 2024
2 parents 7e830da + 332dde5 commit 67f3b70
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,24 +82,13 @@ jobs:
key: ${{ secrets.KEY }}
envs: GITHUB_SHA
script: |
sudo docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
echo ${{secrets.PROJECT_PATH}}
cd ${{secrets.PROJECT_PATH}}
cd ..
cd ..
git pull origin main
cd ${{secrets.PROJECT_PATH}}
sudo docker-compose stop
sudo docker stop user_app || true
sudo docker rm docker-springbootapp-1 || true
sudo docker rm docker-mysql-1 || true
sudo docker rmi mysql || true
sudo docker rmi ji0513ji/game-server || true
sudo docker pull ${{ secrets.DOCKER_REPO }}
sudo docker-compose up --build -d
sudo docker stop game-service || true
sudo docker rm game-service || true
sudo docker pull ${{ secrets.DOCKER_REPO }}
sudo docker run -d --name game-service -p 8080:8080 \
ji0513ji/game-server:latest

- name: Notify
uses: actions/github-script@v5
Expand Down

0 comments on commit 67f3b70

Please sign in to comment.