File tree 2 files changed +15
-10
lines changed
2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 7
7
# will fail due to an auth failure. Which means, you also need to be logged
8
8
# into that registry before you run it.
9
9
10
- cd $( dirname $0 ) /..
10
+ set -euo pipefail
11
11
12
- set -e
13
- for file in * /build ; do (
12
+ REPO_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " /.. && pwd) "
14
13
15
- echo -e " \n### ` dirname $file ` \n"
16
- cd ` dirname $file `
14
+ find " ${REPO_DIR} " -maxdepth 3 -type f -executable -name build | while read -r buildFile; do
15
+ sampleDir=" $( dirname " ${buildFile} " ) "
16
+ echo
17
+ echo " ### ${sampleDir} "
18
+ if [ -f " ${sampleDir} /.SKIP" ]; then
19
+ echo " SKIPPING"
20
+ continue
21
+ fi
17
22
18
- # Skip this dir
19
- [[ -e .SKIP ]] && echo " SKIPPING ` dirname $file ` " && continue
23
+ pushd " ${sampleDir} " > /dev/null
20
24
21
- # Build the image(s)
22
25
./build
23
26
24
- ) done
27
+ popd > /dev/null
28
+ done
25
29
30
+ echo
26
31
echo " All done!"
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ TRUSTED_PROFILE_NAME=code-engine-cos-access
141
141
ibmcloud ce job create --name ${JOB_NAME} \
142
142
--build-source https://github.com/IBM/CodeEngine \
143
143
--build-context-dir trusted-profiles/${PROGRAMMING_LANGUAGE} \
144
- --trusted-profiles-enabled true \
144
+ --trusted-profiles-enabled= true \
145
145
--env COS_REGION=${REGION} \
146
146
--env COS_BUCKET=${COS_BUCKET} \
147
147
--env TRUSTED_PROFILE_NAME=${TRUSTED_PROFILE_NAME}
You can’t perform that action at this time.
0 commit comments