Skip to content

Commit bc3433c

Browse files
authored
Merge pull request #12 from DevopsArtFactory/modify-github-action-ecr
modify github action ecr repo name
2 parents 93c27ab + 2bf74a4 commit bc3433c

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

.github/workflows/gradle.yml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
build:
2626
if: ${{ github.event.pull_request.merged }}
2727
runs-on: ubuntu-latest
28+
2829
steps:
2930
- uses: actions/checkout@v4
3031

@@ -64,26 +65,26 @@ jobs:
6465
run: |
6566
docker push ${{ secrets.AWS_ACCOUNT_NUM }}.dkr.ecr.${{ env.REGION }}.amazonaws.com/sample:${{ steps.vars.outputs.sha_short }}
6667
67-
- name: Download task definition
68-
run: |
69-
aws ecs describe-task-definition --task-definition demo-tmcdapne2 --query taskDefinition > task-definition.json
68+
# - name: Download task definition
69+
# run: |
70+
# aws ecs describe-task-definition --task-definition demo-tmcdapne2 --query taskDefinition > task-definition.json
7071

71-
- name: Fill in the new image ID in the Amazon ECS task definition
72-
id: task-def
73-
uses: aws-actions/amazon-ecs-render-task-definition@v1
74-
with:
75-
task-definition: task-definition.json
76-
container-name: demo
77-
image: ${{ secrets.AWS_ACCOUNT_NUM }}.dkr.ecr.${{ env.REGION }}.amazonaws.com/sample:${{ steps.vars.outputs.sha_short }}
72+
# - name: Fill in the new image ID in the Amazon ECS task definition
73+
# id: task-def
74+
# uses: aws-actions/amazon-ecs-render-task-definition@v1
75+
# with:
76+
# task-definition: task-definition.json
77+
# container-name: demo
78+
# image: ${{ secrets.AWS_ACCOUNT_NUM }}.dkr.ecr.${{ env.REGION }}.amazonaws.com/sample:${{ steps.vars.outputs.sha_short }}
7879

79-
- name: Deploy to Amazon ECS
80-
uses: aws-actions/amazon-ecs-deploy-task-definition@v2
81-
with:
82-
task-definition: ${{ steps.task-def.outputs.task-definition }}
83-
service: demo-tmcdapne2
84-
cluster: demo-tmcdapne2
85-
wait-for-service-stability: true
86-
codedeploy-appspec: appspec.json
87-
codedeploy-application: demo_app
88-
codedeploy-deployment-group: demo_app
80+
# - name: Deploy to Amazon ECS
81+
# uses: aws-actions/amazon-ecs-deploy-task-definition@v2
82+
# with:
83+
# task-definition: ${{ steps.task-def.outputs.task-definition }}
84+
# service: demo-tmcdapne2
85+
# cluster: demo-tmcdapne2
86+
# wait-for-service-stability: true
87+
# codedeploy-appspec: appspec.json
88+
# codedeploy-application: demo_app
89+
# codedeploy-deployment-group: demo_app
8990

0 commit comments

Comments
 (0)