Skip to content

Commit

Permalink
fix : ci/cd 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
seokho-1116 committed Jul 30, 2024
1 parent 4e1207f commit 3bac30f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 115 deletions.
107 changes: 0 additions & 107 deletions .github/workflows/animation-application-ci-cd-flow.yml

This file was deleted.

10 changes: 2 additions & 8 deletions .github/workflows/animation-application-prod-ci-cd-flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- prod_back_animation
- build/cicd-prod-B-#580
- 'hotfix/[0-9a-zA-z]+-B-animation-#[0-9a-zA-z]+'
pull_request:
branches:
Expand All @@ -31,11 +30,6 @@ jobs:
submodules: true
token: ${{ secrets.CI_PAT }}

- name: move yaml files
run: |
mkdir -p ./config/yaml
cp -r ../core/src/main/resources/config ./application/config/yaml
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down Expand Up @@ -84,9 +78,9 @@ jobs:
docker ps -q --filter "name=animated_drawings" | xargs -r docker stop
docker ps -aq --filter "name=animated_drawings" | xargs -r docker rm
aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | docker login --username ${{ secrets.AWS_DOCKER_USER }} --password-stdin ${{ secrets.AWS_USER_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com
docker image prune -f
docker image prune -f -a
docker pull ${{ steps.meta.outputs.tags }}
docker run -d -p 5555:5555 -p 9001:9001 --name animated_drawings -v log_volume:/app/application/log -e ENVIRONMENT='dev' ${{ steps.meta.outputs.tags }}
docker run -d -p 5555:5555 -p 9001:9001 --name animated_drawings -v log_volume:/app/application/log -e ENVIRONMENT='container' ${{ steps.meta.outputs.tags }}
- name: Remove Github Actions IP from security group
if: always()
Expand Down

0 comments on commit 3bac30f

Please sign in to comment.