@@ -35,12 +35,34 @@ jobs:
3535 docker build -t $REGISTRY/$REPOSITORY:$IMAGE_TAG .
3636 docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG
3737
38- -
uses :
prefix-dev/[email protected] 39- with :
40- cache : true
41- locked : true
4238 - name : Update cube-api Task Definition with latest image
43- run : pixi run python scripts/update_task.py --task-definition cube_api --container-name cube-api --image sync-svc-cube:${{ github.sha }}
39+ id : cube-api-task-def
40+ uses : aws-actions/amazon-ecs-render-task-definition@c804dfbdd57f713b6c079302a4c01db7017a36fc
41+ with :
42+ task-definition : cube_api
43+ container-name : cube-api
44+ image : sync-svc-cube:${{ github.sha }}
4445
4546 - name : Update cube-refresh-worker Task Definition with latest image
46- run : pixi run python scripts/update_task.py --task-definition cube_refresh_worker --container-name cube-refresh-worker --image sync-svc-cube:${{ github.sha }}
47+ id : cube-refresh-worker-task-def
48+ uses : aws-actions/amazon-ecs-render-task-definition@c804dfbdd57f713b6c079302a4c01db7017a36fc
49+ with :
50+ task-definition : cube_refresh_worker
51+ container-name : cube-refresh-worker
52+ image : sync-svc-cube:${{ github.sha }}
53+
54+ - name : Deploy cube-api task definition
55+ uses : aws-actions/amazon-ecs-deploy-task-definition@df9643053eda01f169e64a0e60233aacca83799a
56+ with :
57+ task-definition : ${{ steps.cube-api-task-def.outputs.task-definition }}
58+ service : cube_api
59+ cluster : production
60+ wait-for-service-stability : true
61+
62+ - name : Deploy cube-refresh-worker task definition
63+ uses : aws-actions/amazon-ecs-deploy-task-definition@df9643053eda01f169e64a0e60233aacca83799a
64+ with :
65+ task-definition : ${{ steps.cube-refresh-worker-task-def.outputs.task-definition }}
66+ service : cube_refresh_worker
67+ cluster : production
68+ wait-for-service-stability : true
0 commit comments