trigger on push instead of release (#1157)

Co-authored-by: Josh Gross <[email protected]>
This commit is contained in:
Sarah Edwards
2021-10-11 15:53:15 -04:00
committed by GitHub
co-authored by Josh Gross
parent ad91ff259d
commit 6b14bf21cb
6 changed files with 24 additions and 18 deletions
+4 -3
View File
@@ -1,5 +1,5 @@
# This workflow will build and push a new container image to Amazon ECR,
# and then will deploy a new task definition to Amazon ECS, when a release is created
# and then will deploy a new task definition to Amazon ECS, when there is a push to the $default-branch branch.
#
# To use this workflow, you will need to complete the following set-up steps:
#
@@ -27,8 +27,9 @@
name: Deploy to Amazon ECS
on:
release:
types: [created]
push:
branches:
- $default-branch
env:
AWS_REGION: MY_AWS_REGION # set this to your preferred AWS region, e.g. us-west-1