File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929
3030 - name : build docker image
3131 id : build-docker-image
32- run : docker build -t ${{ env.DOCKER_REPO }}:${{ env.DOCKER_TAG }} -t ${{ env.DOCKER_REPO }}:latest .
32+ run : docker build -t ${{ env.DOCKER_REPO }}:${{ env.DOCKER_TAG }} -t ${{ env.DOCKER_REPO }}:latest -t ${{ env.DOCKER_REPO }}:develop .
3333
3434 - name : configure aws credentials
3535 id : configure-aws-credentials
4444 with :
4545 region : ${{ secrets.AWS_REGION }}
4646 local-image : ${{ env.DOCKER_REPO }}:${{ env.DOCKER_TAG }}
47- image : ${{ env.DOCKER_REPO }}:${{ env.DOCKER_TAG }}, ${{ env.DOCKER_REPO }}:latest
48-
49- - name : render ecs task definition
50- id : render-ecs-task-definition
51- uses : aws-actions/amazon-ecs-render-task-definition@v1
52- with :
53- task-definition-arn : ${{ secrets.AWS_ECS_TASK_DEFINITION_ARN }}
54- container-name : ${{ secrets.AWS_ECS_CONTAINER_NAME }}
55- image : ${{ secrets.AWS_ECR_REGISTRY}}/${{ env.DOCKER_REPO }}:${{ env.DOCKER_TAG }}
56-
57- - name : deploy to ecs service
58- id : deploy-to-ecs-service
59- uses : aws-actions/amazon-ecs-deploy-task-definition@v2
60- with :
61- task-definition : ${{ steps.render-ecs-task-definition.outputs.task-definition }}
62- service : ${{ secrets.AWS_ECS_SERVICE_NAME }}
63- cluster : ${{ secrets.AWS_ECS_CLUSTER_NAME }}
64- wait-for-service-stability : true
47+ image : ${{ env.DOCKER_REPO }}:${{ env.DOCKER_TAG }}, ${{ env.DOCKER_REPO }}:latest, ${{ env.DOCKER_REPO }}:develop
You can’t perform that action at this time.
0 commit comments