diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml index 01924b4..8021690 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -55,8 +55,7 @@ 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,env=GIT_API_TOKEN -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . + 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