Skip to content

Commit 73b0e80

Browse files
committed
ci: build directly instead of using repro-build docker wrapper
The sysbox DinD runner cannot nest another docker container due to procfs restrictions. Build directly using bitbake in the runner container which already has all build dependencies.
1 parent 0a9a031 commit 73b0e80

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

.github/workflows/build-guest.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,31 @@ jobs:
1919
with:
2020
submodules: recursive
2121

22-
- name: Reproducible build
23-
run: cd repro-build && ./repro-build.sh -n
22+
- name: Build guest images
23+
run: |
24+
source dev-setup bb-build
25+
make dist DIST_DIR=$PWD/dist BB_BUILD_DIR=$PWD/bb-build
26+
27+
- name: Generate reproduce.sh
28+
run: |
29+
cat > dist/reproduce.sh <<EOF
30+
#!/bin/bash
31+
set -e
32+
git clone https://github.com/Dstack-TEE/meta-dstack.git
33+
cd meta-dstack/
34+
git checkout ${{ github.sha }}
35+
git submodule update --init --recursive
36+
cd repro-build && ./repro-build.sh -n
37+
EOF
38+
chmod +x dist/reproduce.sh
2439
2540
- name: Upload artifacts
2641
uses: actions/upload-artifact@v4
2742
with:
2843
name: guest-images
2944
path: |
30-
repro-build/dist/*.tar.gz
31-
repro-build/dist/reproduce.sh
45+
dist/*.tar.gz
46+
dist/reproduce.sh
3247
retention-days: 30
3348

3449
- name: Create tag and release
@@ -40,6 +55,6 @@ jobs:
4055
git tag "$TAG"
4156
git push origin "$TAG"
4257
gh release create "$TAG" \
43-
repro-build/dist/*.tar.gz \
44-
repro-build/dist/reproduce.sh \
58+
dist/*.tar.gz \
59+
dist/reproduce.sh \
4560
--title "$TAG" --generate-notes

0 commit comments

Comments
 (0)