From 03e302e44ab6c8a99c3369271600853a866f7f60 Mon Sep 17 00:00:00 2001 From: Conor Heffron Date: Sat, 14 Sep 2024 22:22:20 +0100 Subject: [PATCH] Update aws.yml --- .github/workflows/aws.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml index 1993dec..eb96a31 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -11,6 +11,7 @@ env: ECS_CLUSTER: IronocPortfolioCluster ECS_TASK_DEFINITION: .aws/task-definition.json CONTAINER_NAME: ironoc + GIT_API_TOKEN: ${{ secrets.GIT_API_TOKEN }} permissions: contents: read @@ -54,7 +55,7 @@ jobs: # Build a docker container and # push it to ECR so that it can # be deployed to ECS. - docker build --build-arg secret=${{ secrets.GIT_API_TOKEN }} -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .s + docker build --build-arg secret=$GIT_API_TOKEN -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .s docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT