Update .gitea/workflows/base-build.yml
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / Build rootfs (bookworm) (push) Failing after 1m2s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / Build rootfs (bullseye) (push) Failing after 2m40s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / Build rootfs (trixie) (push) Failing after 2m39s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-docker-images (bullseye) (push) Successful in 2m45s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-docker-images (bookworm) (push) Successful in 3m8s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-changelogs (push) Successful in 1m47s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-docker-images (trixie) (push) Successful in 2m13s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-build-info (push) Has been cancelled
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / Build rootfs (bookworm) (push) Failing after 1m2s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / Build rootfs (bullseye) (push) Failing after 2m40s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / Build rootfs (trixie) (push) Failing after 2m39s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-docker-images (bullseye) (push) Successful in 2m45s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-docker-images (bookworm) (push) Successful in 3m8s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-changelogs (push) Successful in 1m47s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-docker-images (trixie) (push) Successful in 2m13s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-build-info (push) Has been cancelled
This commit is contained in:
@@ -130,18 +130,29 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Ensure output directory exists
|
||||
run: mkdir -p ${{ env.OUTPUT_DIR }}/${{ matrix.version }}
|
||||
|
||||
- name: Build rootfs tarball
|
||||
run: |
|
||||
VERSION=${{ matrix.version }}
|
||||
OUT_DIR=${{ env.OUTPUT_DIR }}/$VERSION
|
||||
|
||||
docker build \
|
||||
--build-arg VERSION="$VERSION" \
|
||||
-t rootfs-$VERSION .
|
||||
|
||||
docker run --rm rootfs-$VERSION \
|
||||
bash -c "/scripts/bootstrap-rootfs.sh $VERSION"
|
||||
docker run --rm \
|
||||
-v "$(pwd)/$OUT_DIR:/output" \
|
||||
rootfs-$VERSION \
|
||||
bash -c "/scripts/bootstrap-rootfs.sh $VERSION /output"
|
||||
|
||||
test -f "debian-$VERSION.tar.bz2"
|
||||
if [[ ! -f "$OUT_DIR/debian-$VERSION.tar.bz2" ]]; then
|
||||
echo "[ERROR] Rootfs tarball not found at $OUT_DIR/debian-$VERSION.tar.bz2"
|
||||
exit 1
|
||||
else
|
||||
echo "[OK] Rootfs tarball created at $OUT_DIR/debian-$VERSION.tar.bz2"
|
||||
fi
|
||||
|
||||
- name: Clone upload repo
|
||||
run: |
|
||||
@@ -151,11 +162,13 @@ jobs:
|
||||
- name: Update archive + sha256
|
||||
run: |
|
||||
VERSION=${{ matrix.version }}
|
||||
OUT_DIR=${{ env.OUTPUT_DIR }}/$VERSION
|
||||
|
||||
mkdir -p upload/$VERSION
|
||||
cp "debian-$VERSION.tar.bz2" "upload/$VERSION/"
|
||||
cp "$OUT_DIR/debian-$VERSION.tar.bz2" "upload/$VERSION/"
|
||||
|
||||
cd upload
|
||||
# Remove previous sha256 entry for this version
|
||||
sed -i "/debian-$VERSION.tar.bz2/d" sha256sums.txt 2>/dev/null || true
|
||||
sha256sum "$VERSION/debian-$VERSION.tar.bz2" >> sha256sums.txt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user