Skip to content

Commit

Permalink
fix: deployment gh action (#219)
Browse files Browse the repository at this point in the history
* fix: deployment gh action

* fix: yaml format
  • Loading branch information
priom authored Oct 26, 2022
1 parent 791329d commit c14b72a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Build & Push Docker Image to AWS ECR
on:
push:
tags:
- v*
- v1.*

env:
AWS_REGION: ${{ secrets.AWS_REGION }}
Expand Down Expand Up @@ -49,4 +49,4 @@ jobs:
push: true
tags: |
${{ env.AWS_ACCOUNT_ID }}.dkr.ecr.${{ env.AWS_REGION }}.amazonaws.com/${{ env.AWS_ECR_REPO }}:latest
${{ env.AWS_ACCOUNT_ID }}.dkr.ecr.${{ env.AWS_REGION }}.amazonaws.com/${{ env.AWS_ECR_REPO }}:${{ steps.vars.outputs.sha }}
${{ env.AWS_ACCOUNT_ID }}.dkr.ecr.${{ env.AWS_REGION }}.amazonaws.com/${{ env.AWS_ECR_REPO }}:${{ steps.vars.outputs.sha }}
4 changes: 2 additions & 2 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Deploy ECS Prod
on:
push:
tags:
- v*
- v1.*

env:
AWS_REGION: ${{ secrets.AWS_REGION }}
Expand Down Expand Up @@ -39,4 +39,4 @@ jobs:
task-definition: ecs/task_definition_${{ env.ENVIRONMENT }}.json
service: nodewatch-${{ env.ENVIRONMENT }}-service
cluster: nodewatch-${{ env.ENVIRONMENT }}-cluster
wait-for-service-stability: true
wait-for-service-stability: true

0 comments on commit c14b72a

Please sign in to comment.