Skip to content

Commit 803ab18

Browse files
author
claudfuen
committed
Fix YAML syntax in buildspec.yml
- Replace backticks with quoted $(date) syntax to prevent YAML parsing errors - CodeBuild was failing with 'Expected Commands[1] to be of string type' error
1 parent b85b7ef commit 803ab18

File tree

3 files changed

+3
-47
lines changed

3 files changed

+3
-47
lines changed

.github/workflows/preview.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

apps/infra/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ const migrationTaskDef = new aws.ecs.TaskDefinition("pathfinder-migration-task",
631631
// Trigger CodeBuild to build images and run migrations
632632
const buildImagesAndMigrate = new command.local.Command("build-images-and-migrate", {
633633
create: pulumi.interpolate`
634-
set -euo pipefail # Exit on any error, undefined vars, or pipe failures
634+
set -eu # Exit on any error, undefined vars (pipefail not supported in sh)
635635
636636
echo "🚀 Starting CodeBuild to build images and run migrations..."
637637

apps/web/buildspec.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ phases:
1414
- echo DATABASE_URL is configured for build-time access
1515
build:
1616
commands:
17-
- echo Build started on `date`
17+
- echo "Build started on $(date)"
1818
- echo "=== PHASE 1: Building and pushing migration image ==="
1919
- cd apps/web # Navigate to the web app directory from repo root
2020
- docker build -f Dockerfile.migration -t $IMAGE_REPO_NAME:migration-$IMAGE_TAG .
@@ -45,7 +45,7 @@ phases:
4545
- docker tag $IMAGE_REPO_NAME:$IMAGE_TAG $REPOSITORY_URI:latest
4646
post_build:
4747
commands:
48-
- echo Build completed on `date`
48+
- echo "Build completed on $(date)"
4949
- echo Pushing the Docker images...
5050
- docker push $REPOSITORY_URI:migration-$IMAGE_TAG
5151
- docker push $REPOSITORY_URI:migration-latest

0 commit comments

Comments
 (0)