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:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Ensure output directory exists
|
||||||
|
run: mkdir -p ${{ env.OUTPUT_DIR }}/${{ matrix.version }}
|
||||||
|
|
||||||
- name: Build rootfs tarball
|
- name: Build rootfs tarball
|
||||||
run: |
|
run: |
|
||||||
VERSION=${{ matrix.version }}
|
VERSION=${{ matrix.version }}
|
||||||
|
OUT_DIR=${{ env.OUTPUT_DIR }}/$VERSION
|
||||||
|
|
||||||
docker build \
|
docker build \
|
||||||
--build-arg VERSION="$VERSION" \
|
--build-arg VERSION="$VERSION" \
|
||||||
-t rootfs-$VERSION .
|
-t rootfs-$VERSION .
|
||||||
|
|
||||||
docker run --rm rootfs-$VERSION \
|
docker run --rm \
|
||||||
bash -c "/scripts/bootstrap-rootfs.sh $VERSION"
|
-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
|
- name: Clone upload repo
|
||||||
run: |
|
run: |
|
||||||
@@ -151,11 +162,13 @@ jobs:
|
|||||||
- name: Update archive + sha256
|
- name: Update archive + sha256
|
||||||
run: |
|
run: |
|
||||||
VERSION=${{ matrix.version }}
|
VERSION=${{ matrix.version }}
|
||||||
|
OUT_DIR=${{ env.OUTPUT_DIR }}/$VERSION
|
||||||
|
|
||||||
mkdir -p upload/$VERSION
|
mkdir -p upload/$VERSION
|
||||||
cp "debian-$VERSION.tar.bz2" "upload/$VERSION/"
|
cp "$OUT_DIR/debian-$VERSION.tar.bz2" "upload/$VERSION/"
|
||||||
|
|
||||||
cd upload
|
cd upload
|
||||||
|
# Remove previous sha256 entry for this version
|
||||||
sed -i "/debian-$VERSION.tar.bz2/d" sha256sums.txt 2>/dev/null || true
|
sed -i "/debian-$VERSION.tar.bz2/d" sha256sums.txt 2>/dev/null || true
|
||||||
sha256sum "$VERSION/debian-$VERSION.tar.bz2" >> sha256sums.txt
|
sha256sum "$VERSION/debian-$VERSION.tar.bz2" >> sha256sums.txt
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user