Skip to content

Commit

Permalink
FIx(#14): deploy_production.yml 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dongkyun0713 authored Jul 17, 2024
1 parent 9acd34f commit ffd3a42
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ jobs:
CURRENT_PORT=${{ env.CURRENT_PORT }}
NEW_PORT=${{ env.NEW_PORT }}
if [ $(sudo docker ps -q -f name=$NEW_CONTAINER) ]; then
sudo docker stop $NEW_CONTAINER
sudo docker rm $NEW_CONTAINER
if [ $(sudo docker ps -q -f name="$NEW_CONTAINER") ]; then
sudo docker stop "$NEW_CONTAINER"
sudo docker rm "$NEW_CONTAINER"
fi
sudo docker pull ${{ env.DOCKER_IMAGE_NAME }}
sudo docker run --name $NEW_CONTAINER -d -p $NEW_PORT:8087 -e TZ=Asia/Seoul ${{ env.DOCKER_IMAGE_NAME }}
sudo docker run --name "$NEW_CONTAINER" -d -p "$NEW_PORT":8087 -e TZ=Asia/Seoul ${{ env.DOCKER_IMAGE_NAME }}
echo "CURRENT_CONTAINER="$NEW_CONTAINER"" >> "$GITHUB_ENV"
echo "CURRENT_PORT="$NEW_PORT"" >> "$GITHUB_ENV"
Expand Down

0 comments on commit ffd3a42

Please sign in to comment.