Skip to content

Commit ec7154d

Browse files
authored
fix: prod deployment (#225)
* fix: prod deployment * fix: prod deployment
1 parent 5dc13ce commit ec7154d

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/build_prod.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
name: Build & Push Docker Image to AWS ECR
55

66
on:
7-
release:
8-
types: [published]
7+
push:
8+
branches:
9+
- main
910

1011
env:
1112
AWS_REGION: ${{ secrets.AWS_REGION }}
@@ -48,4 +49,4 @@ jobs:
4849
push: true
4950
tags: |
5051
${{ env.AWS_ACCOUNT_ID }}.dkr.ecr.${{ env.AWS_REGION }}.amazonaws.com/${{ env.AWS_ECR_REPO }}:latest
51-
${{ env.AWS_ACCOUNT_ID }}.dkr.ecr.${{ env.AWS_REGION }}.amazonaws.com/${{ env.AWS_ECR_REPO }}:${{ steps.vars.outputs.sha }}
52+
${{ env.AWS_ACCOUNT_ID }}.dkr.ecr.${{ env.AWS_REGION }}.amazonaws.com/${{ env.AWS_ECR_REPO }}:${{ steps.vars.outputs.sha }}

.github/workflows/deploy_prod.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
name: Deploy ECS Prod
55

66
on:
7-
release:
8-
types: [published]
7+
push:
8+
branches:
9+
- main
910

1011
env:
1112
AWS_REGION: ${{ secrets.AWS_REGION }}
@@ -38,4 +39,4 @@ jobs:
3839
task-definition: infra/aws-ecs/task_definition_${{ env.ENVIRONMENT }}.json
3940
service: nodewatch-${{ env.ENVIRONMENT }}-service
4041
cluster: nodewatch-${{ env.ENVIRONMENT }}-cluster
41-
wait-for-service-stability: true
42+
wait-for-service-stability: true

0 commit comments

Comments
 (0)