Skip to content

Commit

Permalink
Update and rename build-and-push-ecr.yml to build-and-push-ecr-uat.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronhelton authored Jan 10, 2025
1 parent 58ee9a6 commit 398eb15
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@ name: Build and push to ECR

on:
push:
branches: [_main]
branches: [main]

env:
AWS_REGION: ${{secrets.AWS_REGION}}
ECR_REPOSITORY: gstream/nuxt
ECS_SERVICE: gstreamUATService
ECS_CLUSTER: gstreamUATCluster
ECS_TASK_DEFINITION: .build/ecs-uat.json
CONTAINER_NAME: gstreamUATContainer

jobs:
build:
Expand All @@ -36,6 +32,6 @@ jobs:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:uat .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:uat
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:uat" >> $GITHUB_OUTPUT

0 comments on commit 398eb15

Please sign in to comment.