Skip to content

Commit 5b26abc

Browse files
committed
fix: add Docker image mapping for DEB builds in full-build workflow
The build-deb job was passing the distribution name (e.g., "ubuntu-24.04") directly to build_deb.sh instead of the Docker image name (e.g., "ubuntu:24.04"). This caused Docker to fail with "repository does not exist" error. Added case statement to map distribution names to Docker image names, matching the approach already used in release.yml workflow. Fixes DEB package builds in full-build workflow.
1 parent b590161 commit 5b26abc

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/full-build.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,15 @@ jobs:
507507
arch="${{ matrix.arch }}"
508508
dist="${{ matrix.dist }}"
509509
510+
# Map distribution name to Docker image
511+
case $dist in
512+
ubuntu-22.04) image="ubuntu:22.04" ;;
513+
ubuntu-24.04) image="ubuntu:24.04" ;;
514+
debian-12) image="debian:12" ;;
515+
debian-13) image="debian:trixie" ;;
516+
*) echo "Error: Unknown distribution: $dist"; exit 1 ;;
517+
esac
518+
510519
echo "::group::🔧 Generating build files"
511520
build_dir="build/$exporter-$arch-$dist"
512521
python3 -m core.engine.builder \
@@ -516,9 +525,9 @@ jobs:
516525
echo "::endgroup::"
517526
518527
if [ -d "$build_dir/debian" ]; then
519-
echo "::group::🐳 Building DEB package"
528+
echo "::group::🐳 Building DEB package ($image)"
520529
chmod +x core/scripts/build_deb.sh
521-
./core/scripts/build_deb.sh "$build_dir" "$build_dir/debs" "$arch" "$dist"
530+
./core/scripts/build_deb.sh "$build_dir" "$build_dir/debs" "$arch" "$image"
522531
echo "::endgroup::"
523532
fi
524533

0 commit comments

Comments
 (0)