From 99e132be73b8885b503aa03a17b964b776ffd955 Mon Sep 17 00:00:00 2001 From: Mike Yavorsky Date: Tue, 9 Jul 2024 19:43:09 -0400 Subject: [PATCH] deploy scheduled task in github action --- .github/workflows/aws-ecs-deploy.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/aws-ecs-deploy.yml b/.github/workflows/aws-ecs-deploy.yml index 14d13b2..b91ef4e 100644 --- a/.github/workflows/aws-ecs-deploy.yml +++ b/.github/workflows/aws-ecs-deploy.yml @@ -4,6 +4,7 @@ on: branches: - "main" - "add-dockerfile" + - "update-action" release: types: - created @@ -114,12 +115,8 @@ jobs: task-definition: task-def-scraper.json container-name: ${{ needs.setup_env.outputs.AWS_APPENV }} image: ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ env.AWS_REGION }}.amazonaws.com/${{ needs.setup_env.outputs.AWS_APPENV }}:${{ needs.setup_env.outputs.IMAGE_TAG }} - - name: Run Task on Amazon ECS - uses: mikeyavorsky/amazon-ecs-run-task@main + - name: Deploy to Amazon ECS Scheduled Tasks + uses: airfordable/ecs-deploy-task-definition-to-scheduled-task@v2.0.0 with: - task-definition: ${{ steps.task-definition.outputs.task-definition }} cluster: infra-prod - count: 1 - network-configuration: network-config-scraper.json - launch-type: FARGATE - started-by: github-actions-${{ github.actor }} + task-definition: task-def-scraper.json \ No newline at end of file