From 29f403a428e971db2a728ffe6788e7ab01a0b272 Mon Sep 17 00:00:00 2001 From: Conor Heffron Date: Mon, 16 Sep 2024 02:33:00 +0100 Subject: [PATCH] Update aws.yml --- .github/workflows/aws.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml index 2e8f1dd..2a5c778 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -11,7 +11,6 @@ env: ECS_CLUSTER: IronocPortfolioCluster ECS_TASK_DEFINITION: .aws/task-definition.json CONTAINER_NAME: ironoc - GIT_API_TOKEN: ${{ secrets.GIT_API_TOKEN }} permissions: contents: read @@ -55,8 +54,8 @@ jobs: # Build a docker container and # push it to ECR so that it can # be deployed to ECS. - 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 . + 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