Skip to content

Commit 76958e6

Browse files
author
Brett Richter
committed
build argh for envs
1 parent a328c37 commit 76958e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/github-actions-production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
# Build a docker container and
4242
# push it to ECR so that it can
4343
# be deployed to ECS.
44-
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
44+
docker build --build-arg ENV_NAME=prod -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
4545
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
4646
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
4747

.github/workflows/github-actions-qa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
# Build a docker container and
4242
# push it to ECR so that it can
4343
# be deployed to ECS.
44-
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
44+
docker build --build-arg ENV_NAME=qa -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
4545
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
4646
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
4747

0 commit comments

Comments
 (0)