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