Skip to content

Commit

Permalink
feat: add concurrency to prevent multi-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
abelr20 committed Aug 14, 2024
1 parent 66c0820 commit cbe4c47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ on:
push:
branches: ['Abel/Deploy'] # Update to push to 'main' when complete

concurrency:
group: deploy-${{ github.ref }}
cancel-in-progress: true

env:
AWS_REGION: ${{ secrets.AWS_REGION }} # Use GitHub secret for AWS region
ECR_REPOSITORY: app # Set this to your Amazon ECR repository name
Expand Down

0 comments on commit cbe4c47

Please sign in to comment.