Skip to content

Commit

Permalink
[IDLE-000] cd 스크립트 ecr 정보 직접 명시 및 style 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
wonjunYou committed Sep 18, 2024
1 parent f4e599f commit 9e29ac7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/prod-server-deployer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ jobs:
key: ${{ secrets.INSTANCE_PEM_KEY }}
script: |
sudo docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
sudo docker pull public.ecr.aws/f5q3r6m5/idle-prod-ecr:$IMAGE_TAG
if [ $(sudo docker ps -q -f name=caremeet_server_prod) ]; then
sudo docker stop caremeet_server_prod
sudo docker rm caremeet_server_prod
sudo docker pull public.ecr.aws/f5q3r6m5/idle-prod-ecr:latest
if sudo docker ps -q -f name=caremeet_server_prod; then
sudo docker stop caremeet_server_prod
sudo docker rm caremeet_server_prod
fi
sudo docker run --name caremeet_server_prod --env-file ./app/docker/.env -d -p 8080:8080 public.ecr.aws/f5q3r6m5/idle-prod-ecr:$IMAGE_TAG
sudo docker run --name caremeet_server_prod --env-file ./app/docker/.env -d -p 8080:8080 public.ecr.aws/f5q3r6m5/idle-prod-ecr:latest
- name: Remove GitHub Actions IP
run: |
Expand Down

0 comments on commit 9e29ac7

Please sign in to comment.