From 5851215517153407366ef4aca7ca7b336eaeac86 Mon Sep 17 00:00:00 2001 From: Conor Heffron Date: Mon, 16 Sep 2024 02:40:23 +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 5a1d5ca..03806ef 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -54,7 +54,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="${{ secrets.GIT_API_TOKEN }}" -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . + EXPORT "GIT_API_TOKEN=${{ secrets.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