File tree 2 files changed +20
-14
lines changed
2 files changed +20
-14
lines changed Original file line number Diff line number Diff line change @@ -231,19 +231,14 @@ jobs:
231
231
232
232
- name : Test the export
233
233
run : |
234
- USE_COPY_NOT_MOUNT=true LLAMA_STACK_DIR=. uv run llama stack build --config llama_stack/templates/starter/build.yaml --export-dir export
234
+ # Support for USE_COPY_NOT_MOUNT=true LLAMA_STACK_DIR=. will be added in the future
235
+ uv run llama stack build --config llama_stack/templates/starter/build.yaml --export-dir export
235
236
for file in export/*; do
236
237
echo "File: $file"
237
238
if [[ "$file" == *.tar.gz ]]; then
238
239
echo "Tarball found"
239
240
tarball_found=1
240
- tar -xzvf "$file"
241
- if [ -f "Containerfile" ]; then
242
- echo "Containerfile found"
243
- else
244
- echo "Containerfile not found"
245
- exit 1
246
- fi
241
+ tar -xzvf "$file" -C export
247
242
else
248
243
continue
249
244
fi
@@ -254,4 +249,8 @@ jobs:
254
249
exit 1
255
250
fi
256
251
cd export
257
- docker build -t test .
252
+ docker build -t export-test -f ./Containerfile .
253
+
254
+ - name : Setup tmate session
255
+ if : ${{ failure() }}
256
+ uses : mxschmitt/action-tmate@v3
Original file line number Diff line number Diff line change @@ -289,13 +289,20 @@ if [ -n "$export_dir" ]; then
289
289
echo " Creating tarball with the following files:"
290
290
echo " - Containerfile"
291
291
[ -n " $run_config " ] && echo " - run.yaml"
292
- [ -n " $external_providers_dir " ] && echo " - providers.d directory"
292
+ [ -n " $external_providers_dir " ] && [ -d " $external_providers_dir " ] && echo " - providers.d directory"
293
293
294
294
# Capture both stdout and stderr from tar command
295
- tar_output=$( tar -czf " $export_dir /$tar_name " \
296
- -C " $TEMP_DIR " Containerfile \
297
- ${run_config: +-C " $BUILD_CONTEXT_DIR " " $( basename run.yaml) " } \
298
- ${external_providers_dir: +-C " $BUILD_CONTEXT_DIR " providers.d} 2>&1 )
295
+ tar_cmd=" tar -czf \" $export_dir /$tar_name \" -C \" $TEMP_DIR \" Containerfile"
296
+
297
+ if [ -n " $run_config " ]; then
298
+ tar_cmd=" $tar_cmd -C \" $BUILD_CONTEXT_DIR \" \" $( basename run.yaml) \" "
299
+ fi
300
+
301
+ if [ -n " $external_providers_dir " ] && [ -d " $external_providers_dir " ]; then
302
+ tar_cmd=" $tar_cmd -C \" $BUILD_CONTEXT_DIR \" providers.d"
303
+ fi
304
+
305
+ tar_output=$( eval " $tar_cmd " 2>&1 )
299
306
tar_status=$?
300
307
301
308
if [ $tar_status -ne 0 ]; then
You can’t perform that action at this time.
0 commit comments