From 24be95ea83c0f550352b8ad09171bb0b51a342af Mon Sep 17 00:00:00 2001 From: Conor Heffron Date: Mon, 16 Sep 2024 02:31:22 +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 8021690..2e8f1dd 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -55,7 +55,8 @@ jobs: # Build a docker container and # push it to ECR so that it can # be deployed to ECS. - docker build --secret id=GIT_API_TOKEN,src=$GIT_API_TOKEN -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . + export GIT_API_TOKEN=$GIT_API_TOKEN + docker build --secret id=GIT_API_TOKEN,src=GIT_API_TOKEN -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