Skip to content

Commit e09a5f7

Browse files
committed
ci: restore repro-build.sh for reproducible builds
Revert to using repro-build.sh which runs the build inside a Docker container for reproducibility. This works now with sysbox 0.7.0 which fixed the DinD compatibility issue with runc 1.3.x.
1 parent 73b0e80 commit e09a5f7

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

.github/workflows/build-guest.yml

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

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
22+
- name: Reproducible build
23+
run: cd repro-build && ./repro-build.sh -n
3924

4025
- name: Upload artifacts
4126
uses: actions/upload-artifact@v4
4227
with:
4328
name: guest-images
4429
path: |
45-
dist/*.tar.gz
46-
dist/reproduce.sh
30+
repro-build/dist/*.tar.gz
31+
repro-build/dist/reproduce.sh
4732
retention-days: 30
4833

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

0 commit comments

Comments
 (0)