Skip to content

Commit abf927c

Browse files
authored
Update deploy.yml
1 parent a52e6f2 commit abf927c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727
name: Deploy to Amazon ECS
2828

2929
on:
30-
release:
31-
types: [created]
30+
push:
31+
tags:
32+
- '*'
3233

3334
env:
3435
AWS_REGION: "us-east-2" # set this to your preferred AWS region, e.g. us-west-1
@@ -55,7 +56,8 @@ jobs:
5556
- name: Login to Amazon ECR
5657
id: login-ecr
5758
uses: aws-actions/amazon-ecr-login@v1
58-
- uses: actions/checkout@v3
59+
- name: Checkout repo
60+
uses: actions/checkout@v3
5961
- name: Add GITHUB_SHA_SHORT env property with commit short sha
6062
run: echo "GITHUB_SHA_SHORT=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
6163
- name: Push image to Amazon ECR

0 commit comments

Comments
 (0)