Skip to content

Commit

Permalink
Merge branch 'develop' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
gurdl0525 committed Nov 13, 2023
2 parents 18f49b1 + 19595f6 commit 367da68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
username: ${{ secrets.EC2_USERNAME }}
key: ${{ secrets.EC2_SSH_KEY }}
script: |
docker pull ${{ secrets.DOCKER_REPOSITORY }}
docker stop ${{ secrets.SERVER_NAME }}
docker rm ${{ secrets.SERVER_NAME }}
docker pull ${{ secrets.DOCKER_REPOSITORY }}
docker run -dp ${{ secrets.HOST_PORT }}:${{ secrets.DOCKER_CONTAINER_PORT }} --name ${{ secrets.SERVER_NAME }} --env-file ${{ secrets.ENV_PATH }} ${{ secrets.DOCKER_REPOSITORY }}
docker rmi $(docker images -f "dangling=true" -q)

0 comments on commit 367da68

Please sign in to comment.