File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ jobs:
142142 id : build-image
143143 run : |
144144 IMAGE_TAG=${{ steps.meta.outputs.short_sha }}
145- ECR_IMAGE=${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/${{ secrets.ECR_REPOSITORY_NAME }}:$IMAGE_TAG
145+ ECR_IMAGE=${{ secrets.ECR_REPOSITORY_URL }}:$IMAGE_TAG
146146 docker build -t $ECR_IMAGE .
147147 echo "ECR_IMAGE=$ECR_IMAGE" >> $GITHUB_ENV
148148
@@ -153,12 +153,11 @@ jobs:
153153 run : |
154154 docker push $ECR_IMAGE
155155
156- - name : Force new ECS deployment
156+ - name : Deploy to Amazon ECS
157157 # Only run on develop branch (For test purposes). To be replaced with main branch when ready.
158158 if : github.event_name == 'push' && github.ref == 'refs/heads/develop'
159159 run : |
160- echo "Triggering ECS service update..."
161160 aws ecs update-service \
162161 --cluster ${{ secrets.ECS_CLUSTER_NAME }} \
163- --force-new-deployment \
164- --region ${{ secrets.AWS_REGION }}
162+ --service ${{ secrets.ECS_SERVICE_NAME }} \
163+ --force-new-deployment
You can’t perform that action at this time.
0 commit comments