Skip to content

Commit 138a6ab

Browse files
committed
redirect stderr in e2b template build ci correctly
1 parent 407d2f4 commit 138a6ab

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/build_template.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,12 @@ jobs:
4949
- name: Install E2B CLI
5050
run: npm install -g @e2b/cli
5151

52-
- name: Remove existing e2b.toml
53-
working-directory: ./template
54-
run: rm ./e2b.toml
55-
5652
- name: Build E2B template
5753
id: build-template
5854
run: |
59-
OUTPUT=$(e2b template build --team "460355b3-4f64-48f9-9a16-4442817f79f5" --memory-mb 1024 -c "/root/.jupyter/start-up.sh" -d "e2b.Dockerfile")
60-
echo "build_output=$OUTPUT" >> $GITHUB_OUTPUT
61-
TEMPLATE_ID=$(echo "$OUTPUT" | grep -o '✅ Building sandbox template [a-z0-9]*' | cut -d' ' -f5)
55+
rm -f e2b.toml && e2b template build --team "460355b3-4f64-48f9-9a16-4442817f79f5" --memory-mb 1024 -c "/root/.jupyter/start-up.sh" -d "e2b.Dockerfile" 2>&1 | tee build_output.txt
56+
echo "build_output=$(cat build_output.txt)" >> $GITHUB_OUTPUT
57+
TEMPLATE_ID=$(cat build_output.txt | grep -o 'Requested build for the sandbox template [a-z0-9]*' | cut -d' ' -f6)
6258
echo "template_id=$TEMPLATE_ID" >> $GITHUB_OUTPUT
6359
working-directory: ./template
6460
env:

0 commit comments

Comments
 (0)