Skip to content

Commit ab2ba19

Browse files
authored
Fix the build script not entering all the module directories (#103)
1 parent 48581a5 commit ab2ba19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.ci/build.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/usr/bin/env bash
22

3-
lambdaSrcDirs=("modules/runner-binaries-syncer/lambdas/runner-binaries-syncer" "modules/runners/lambdas/scale-runners" "modules/webhook/lambdas/webhook")
4-
repoRoot=$(dirname "${BASH_SOURCE[0]}")/..
3+
lambdaSrcDirs=("modules/runner-binaries-syncer/lambdas/runner-binaries-syncer" "modules/runners/lambdas/runners" "modules/webhook/lambdas/webhook")
4+
repoRoot=$(dirname $(dirname $(realpath ${BASH_SOURCE[0]})))
55

66
for lambdaDir in ${lambdaSrcDirs[@]}; do
7-
cd $repoRoot/${lambdaDir}
7+
cd "$repoRoot/${lambdaDir}"
88
docker build -t lambda -f ../../../../.ci/Dockerfile .
99
docker create --name lambda lambda
1010
zipName=$(basename "$PWD")

0 commit comments

Comments
 (0)