Skip to content

Commit

Permalink
build : ci/cd test
Browse files Browse the repository at this point in the history
  • Loading branch information
seokho-1116 committed Jul 28, 2024
1 parent 67949c8 commit 031dd49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/core-application-prod-ci-cd-flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- prod_back_core
- build/cicd-prod-B-#580
- 'hotfix/[0-9a-zA-z]+-B-prod-core-#[0-9a-zA-z]+'
pull_request:
branches:
Expand Down Expand Up @@ -127,7 +128,7 @@ jobs:
aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | docker login --username ${{ secrets.AWS_PROD_CORE_DOCKER_USER }} --password-stdin ${{ secrets.AWS_PROD_CORE_USER_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com
docker image prune -f
docker pull ${{ steps.meta.outputs.tags }}
docker run -d -p 8080:8080 -e ENVIRONMENT=container --name core --network test_backend ${{ steps.meta.outputs.tags }}
docker run -d -p 8080:8080 -e ENVIRONMENT=container --name core --network ec2-user_backend ${{ steps.meta.outputs.tags }}
- name: Remove Github Actions IP from security group
if: always()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | docker login --username ${{ secrets.AWS_PROD_NOTIFICATION_DOCKER_USER }} --password-stdin ${{ secrets.AWS_PROD_NOTIFICATION_USER_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com
docker image prune -f
docker pull ${{ steps.meta.outputs.tags }}
docker run -d -p 8081:8081 -e ENVIRONMENT=container --name notification --network test_backend ${{ steps.meta.outputs.tags }}
docker run -d -p 8081:8081 -e ENVIRONMENT=container --name notification --network ec2-user_backend ${{ steps.meta.outputs.tags }}
- name: Remove Github Actions IP from security group
if: always()
Expand Down

0 comments on commit 031dd49

Please sign in to comment.