Skip to content

Commit

Permalink
docker cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
sungjiwoon committed Jan 11, 2024
1 parent dd7b2c8 commit e8da0d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ jobs:
username: ${{ secrets.USER_NAME }}
key: ${{ secrets.PRIVATE_KEY }}
script: |
docker pull ${{ secrets.DOCKER_IMAGE_NAME }}
docker stop chat-server
docker run -d --rm --name chat-server -p 8080:8080 ${{ secrets.DOCKER_IMAGE_NAME }}
sudo docker pull ${{ secrets.DOCKER_IMAGE_NAME }}
sudo docker stop chat-server
sudo docker run -d --rm --name chat-server -p 8080:8080 ${{ secrets.DOCKER_IMAGE_NAME }}

0 comments on commit e8da0d9

Please sign in to comment.