From 2bf74a42bbaaa3eb969dd22ff26fc68ca4db5d13 Mon Sep 17 00:00:00 2001 From: "kuma.jung" Date: Sun, 6 Oct 2024 13:54:15 +0900 Subject: [PATCH] modify github action ecr repo name --- .github/workflows/gradle.yml | 41 ++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index bf39823..684cce6 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -25,6 +25,7 @@ jobs: build: if: ${{ github.event.pull_request.merged }} runs-on: ubuntu-latest + steps: - uses: actions/checkout@v4 @@ -64,26 +65,26 @@ jobs: run: | docker push ${{ secrets.AWS_ACCOUNT_NUM }}.dkr.ecr.${{ env.REGION }}.amazonaws.com/sample:${{ steps.vars.outputs.sha_short }} - - name: Download task definition - run: | - aws ecs describe-task-definition --task-definition demo-tmcdapne2 --query taskDefinition > task-definition.json + # - name: Download task definition + # run: | + # aws ecs describe-task-definition --task-definition demo-tmcdapne2 --query taskDefinition > task-definition.json - - name: Fill in the new image ID in the Amazon ECS task definition - id: task-def - uses: aws-actions/amazon-ecs-render-task-definition@v1 - with: - task-definition: task-definition.json - container-name: demo - image: ${{ secrets.AWS_ACCOUNT_NUM }}.dkr.ecr.${{ env.REGION }}.amazonaws.com/sample:${{ steps.vars.outputs.sha_short }} + # - name: Fill in the new image ID in the Amazon ECS task definition + # id: task-def + # uses: aws-actions/amazon-ecs-render-task-definition@v1 + # with: + # task-definition: task-definition.json + # container-name: demo + # image: ${{ secrets.AWS_ACCOUNT_NUM }}.dkr.ecr.${{ env.REGION }}.amazonaws.com/sample:${{ steps.vars.outputs.sha_short }} - - name: Deploy to Amazon ECS - uses: aws-actions/amazon-ecs-deploy-task-definition@v2 - with: - task-definition: ${{ steps.task-def.outputs.task-definition }} - service: demo-tmcdapne2 - cluster: demo-tmcdapne2 - wait-for-service-stability: true - codedeploy-appspec: appspec.json - codedeploy-application: demo_app - codedeploy-deployment-group: demo_app + # - name: Deploy to Amazon ECS + # uses: aws-actions/amazon-ecs-deploy-task-definition@v2 + # with: + # task-definition: ${{ steps.task-def.outputs.task-definition }} + # service: demo-tmcdapne2 + # cluster: demo-tmcdapne2 + # wait-for-service-stability: true + # codedeploy-appspec: appspec.json + # codedeploy-application: demo_app + # codedeploy-deployment-group: demo_app \ No newline at end of file