Skip to content

Commit

Permalink
deploy scheduled task in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Yavorsky committed Jul 9, 2024
1 parent 0d04ccd commit 99e132b
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/aws-ecs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- "main"
- "add-dockerfile"
- "update-action"
release:
types:
- created
Expand Down Expand Up @@ -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[email protected]
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

0 comments on commit 99e132b

Please sign in to comment.