Skip to content

Commit

Permalink
⚡️ ::
Browse files Browse the repository at this point in the history
  • Loading branch information
gurdl0525 committed Nov 13, 2023
1 parent da828c1 commit 83eb94e
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 83eb94e

Please sign in to comment.