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