Skip to content

Commit

Permalink
cd: 배포 이전을 위한 ECR URI 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kimday0326 committed May 16, 2024
1 parent 410956c commit d4b5a61
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

env:
AWS_REGION: ap-northeast-2
ECR_REPOSITORY: 533267244952.dkr.ecr.ap-northeast-2.amazonaws.com/tikitaza
ECR_URI: 533267244952.dkr.ecr.ap-northeast-2.amazonaws.com/tikitaza
ECS_CLUSTER: tikitaza-cluster
ECS_SERVICE: tikitaza-service-dev
ECS_TASK_DEFINITION: .aws/task-definition-dev.json
Expand Down Expand Up @@ -74,9 +74,9 @@ jobs:
id: build-image
run: |
docker build -t tikitaza:${{ steps.current-time.outputs.formattedTime }} .
docker tag tikitaza:${{ steps.current-time.outputs.formattedTime }} ${{ env.ECR_REPOSITORY }}:${{ steps.current-time.outputs.formattedTime }}-dev
docker push ${{ env.ECR_REPOSITORY }}:${{ steps.current-time.outputs.formattedTime }}-dev
echo "image=${{ env.ECR_REPOSITORY }}:${{ steps.current-time.outputs.formattedTime }}-dev" >> $GITHUB_OUTPUT
docker tag tikitaza:${{ steps.current-time.outputs.formattedTime }} ${{ env.ECR_URI }}:${{ steps.current-time.outputs.formattedTime }}-dev
docker push ${{ env.ECR_URI }}:${{ steps.current-time.outputs.formattedTime }}-dev
echo "image=${{ env.ECR_URI }}:${{ steps.current-time.outputs.formattedTime }}-dev" >> $GITHUB_OUTPUT
- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/cd-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

env:
AWS_REGION: ap-northeast-2
ECR_REPOSITORY: 533267244952.dkr.ecr.ap-northeast-2.amazonaws.com/tikitaza
ECR_URI: 975050255579.dkr.ecr.ap-northeast-2.amazonaws.com/tikitaza
ECS_CLUSTER: tikitaza-cluster
ECS_SERVICE: tikitaza-service-prod
ECS_TASK_DEFINITION: .aws/task-definition-prod.json
Expand Down Expand Up @@ -75,9 +75,9 @@ jobs:
id: build-image
run: |
docker build -t tikitaza:${{ steps.current-time.outputs.formattedTime }} .
docker tag tikitaza:${{ steps.current-time.outputs.formattedTime }} ${{ env.ECR_REPOSITORY }}:${{ steps.current-time.outputs.formattedTime }}-prod
docker push ${{ env.ECR_REPOSITORY }}:${{ steps.current-time.outputs.formattedTime }}-prod
echo "image=${{ env.ECR_REPOSITORY }}:${{ steps.current-time.outputs.formattedTime }}-prod" >> $GITHUB_OUTPUT
docker tag tikitaza:${{ steps.current-time.outputs.formattedTime }} ${{ env.ECR_URI }}:${{ steps.current-time.outputs.formattedTime }}-prod
docker push ${{ env.ECR_URI }}:${{ steps.current-time.outputs.formattedTime }}-prod
echo "image=${{ env.ECR_URI }}:${{ steps.current-time.outputs.formattedTime }}-prod" >> $GITHUB_OUTPUT
- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def
Expand Down

0 comments on commit d4b5a61

Please sign in to comment.