Skip to content

Commit

Permalink
Fix(#14): 컨테이너 못 찾는 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
dongkyun0713 authored Jul 18, 2024
1 parent 02b2ef3 commit a5c2542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
username: ${{ env.EC2_SSH_USER }}
key: ${{ env.PRIVATE_KEY }}
script: |
if [ $(sudo docker ps -q -f name=${{ env.CONTAINER_NAME_BLUE }}) ]; then
if [ $(sudo docker ps -f name=${{ env.CONTAINER_NAME_BLUE }}) ]; then
sudo docker pull ${{ env.DOCKER_IMAGE_NAME }}
sudo docker run --name ${{ env.CONTAINER_NAME_GREEN }} -d -p ${{ env.GREEN_PORT }}:${{ env.GREEN_PORT }} -e SPRING_PROFILES_ACTIVE=green -e TZ=Asia/Seoul ${{ env.DOCKER_IMAGE_NAME }}:latest
sleep 30
Expand Down

0 comments on commit a5c2542

Please sign in to comment.