From 40b966328ad3cc0456b39e25c75ea94d29ed083c Mon Sep 17 00:00:00 2001 From: John Ritsema Date: Thu, 18 Apr 2024 01:07:36 -0400 Subject: [PATCH] fixes errors with building backstage in codebuild (#204) --- .../backstage/templates/buildspec.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/terraform/fargate-examples/backstage/templates/buildspec.yml b/terraform/fargate-examples/backstage/templates/buildspec.yml index e455e6ba..b0bce4f2 100644 --- a/terraform/fargate-examples/backstage/templates/buildspec.yml +++ b/terraform/fargate-examples/backstage/templates/buildspec.yml @@ -1,12 +1,17 @@ version: 0.2 +env: + variables: + "DOCKER_BUILDKIT": "1" + phases: install: - runtime_versions: - nodejs: 14 + runtime-versions: + nodejs: 18 commands: - npm install -g yarn - yarn install + - yarn tsc pre_build: commands: - echo $REPO_URL @@ -21,7 +26,7 @@ phases: - echo "Building from $(pwd)" - echo Build started on `date` - echo Building the Docker image... - - yarn build + - yarn build:backend --config ../../app-config.yaml - yarn build-image post_build: commands: