Skip to content

Commit 9a4a0a5

Browse files
committed
chore: fix cicd
1 parent d43a5e9 commit 9a4a0a5

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/cicd-workflow.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ jobs:
1111
deploy:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Checkout source code
15-
uses: actions/checkout@v3
1614

1715
# 1. JDK 17 세팅
1816
- name: Set up JDK 17
@@ -78,12 +76,12 @@ jobs:
7876
container-name: ${{ secrets.ECS_CONTAINER_NAME_PROD }}
7977
image: ${{ steps.build-image-release.outputs.image }}
8078

81-
- name: Fill in the new image ID in the Amazon ECS task definition - release
79+
- name: Fill in the new image ID in the Amazon ECS task definition - develop
8280
if: github.ref == 'refs/heads/develop'
8381
id: task-def-develop
8482
uses: aws-actions/amazon-ecs-render-task-definition@v1
8583
with:
86-
task-definition: task-definition-prod.json
84+
task-definition: task-definition-dev.json
8785
container-name: ${{ secrets.ECS_CONTAINER_NAME_DEV }}
8886
image: ${{ steps.build-image-develop.outputs.image }}
8987

@@ -92,7 +90,7 @@ jobs:
9290
if: github.ref == 'refs/heads/release'
9391
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
9492
with:
95-
task-definition: ${{ steps.task-def.outputs.task-definition }} # ECS 태스크 정의 파일을 지정합니다.
93+
task-definition: ${{ steps.task-def-release.outputs.task-definition }} # ECS 태스크 정의 파일을 지정합니다.
9694
service: ${{ secrets.ECS_SERVICE_NAME_PROD }}
9795
cluster: ${{ secrets.ECS_CLUSTER_NAME }}
9896
wait-for-service-stability: true # 서비스가 안정화될 때까지 대기합니다.
@@ -101,7 +99,7 @@ jobs:
10199
if: github.ref == 'refs/heads/develop'
102100
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
103101
with:
104-
task-definition: ${{ steps.task-def.outputs.task-definition }} # ECS 태스크 정의 파일을 지정합니다.
102+
task-definition: ${{ steps.task-def-develop.outputs.task-definition }} # ECS 태스크 정의 파일을 지정합니다.
105103
service: ${{ secrets.ECS_SERVICE_NAME_DEV }}
106104
cluster: ${{ secrets.ECS_CLUSTER_NAME }}
107105
wait-for-service-stability: true # 서비스가 안정화될 때까지 대기합니다.

0 commit comments

Comments
 (0)