fdghfgdh
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-rootfs-archives (push) Failing after 1m54s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / push-archives-to-repo (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-docker-images (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-changelogs (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-build-info (push) Has been skipped
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-rootfs-archives (push) Failing after 1m54s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / push-archives-to-repo (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-docker-images (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-changelogs (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-build-info (push) Has been skipped
This commit is contained in:
@@ -29,36 +29,32 @@ jobs:
|
||||
run: |
|
||||
versions=(buster bullseye bookworm trixie docker-build)
|
||||
|
||||
# Clear previous checksum file if exists
|
||||
rm -f sha256sums.txt
|
||||
|
||||
for version in "${versions[@]}"; do
|
||||
echo "[INFO] Building Debian $version rootfs..."
|
||||
docker build --build-arg VERSION=$version -t fithwum/debian-$version-base .
|
||||
|
||||
OUTPUT_DIR="$(pwd)/output"
|
||||
mkdir -p "$OUTPUT_DIR"
|
||||
|
||||
docker run --rm --privileged \
|
||||
-v "$OUTPUT_DIR:/output" \
|
||||
-v "$(pwd)":/output \
|
||||
fithwum/debian-$version-base \
|
||||
bash base-image-script/debian-${version}_pt1.sh
|
||||
|
||||
RAW_ARCHIVE="./output/${version}/rootfs-${version}.tar.bz2"
|
||||
FINAL_ARCHIVE="${version}/rootfs-${version}.tar.bz2"
|
||||
ARCHIVE_PATH="./${version}/rootfs-${version}.tar.bz2"
|
||||
|
||||
if [[ -f "$RAW_ARCHIVE" ]]; then
|
||||
echo "[INFO] Found archive at $RAW_ARCHIVE"
|
||||
# Check if archive exists
|
||||
if [[ -f "$ARCHIVE_PATH" ]]; then
|
||||
echo "[INFO] Archive found at $ARCHIVE_PATH"
|
||||
|
||||
# Calculate and log SHA256 checksum
|
||||
CHECKSUM=$(sha256sum "$ARCHIVE_PATH" | awk '{print $1}')
|
||||
echo "[INFO] SHA256 for $ARCHIVE_PATH: $CHECKSUM"
|
||||
echo "$CHECKSUM $ARCHIVE_PATH" >> sha256sums.txt
|
||||
else
|
||||
echo "[ERROR] Archive for $version not found at $RAW_ARCHIVE"
|
||||
echo "[ERROR] Archive not found at $ARCHIVE_PATH"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p "$(dirname "$FINAL_ARCHIVE")"
|
||||
mv "$RAW_ARCHIVE" "$FINAL_ARCHIVE"
|
||||
|
||||
CHECKSUM=$(sha256sum "$FINAL_ARCHIVE" | awk '{print $1}')
|
||||
echo "[INFO] SHA256 for $FINAL_ARCHIVE: $CHECKSUM"
|
||||
echo "$CHECKSUM $FINAL_ARCHIVE" >> sha256sums.txt
|
||||
done
|
||||
|
||||
- name: List output archives
|
||||
@@ -71,6 +67,23 @@ jobs:
|
||||
with:
|
||||
name: sha256sums
|
||||
path: sha256sums.txt
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# build-rootfs-archives:
|
||||
# runs-on: docker-build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user