Skip to content

Commit

Permalink
[IDLE-000] ecr 버전 명시
Browse files Browse the repository at this point in the history
  • Loading branch information
wonjunYou committed Nov 5, 2024
1 parent f5ee7d4 commit 37d44f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/prod-server-deployer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ 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
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 \
-e SPRING_PROFILES_ACTIVE=prod \
-d -p 8080:8080 public.ecr.aws/f5q3r6m5/idle-prod-ecr:$IMAGE_TAG
-d -p 8080:8080 public.ecr.aws/f5q3r6m5/idle-prod-ecr:latest
- name: Remove GitHub Actions IP
run: |
Expand Down

0 comments on commit 37d44f1

Please sign in to comment.