2 個答案
- 最新
- 最多得票
- 最多評論
0
I hadn't included the task-definition file in my github repo, which github actions searched when defining task definition.
已回答 4 年前
0
I faced the same issue, then I figured out that I need to download the task definition first then update it with the new container image. that solved the issue and I was able to deploy to ECS.
- name: Download task definition
run: |
aws ecs describe-task-definition --task-definition ${{ secrets.ECS_TASK_DEFINITION }} \
--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: ${{ secrets.ECS_CONTAINER_NAME }}
image: ${{ steps.build-image.outputs.image }}
已回答 2 年前
相關內容
- AWS 官方已更新 10 個月前
- AWS 官方已更新 2 年前