dfgdfsg
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-rootfs-archives (push) Failing after 2m11s
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 2m11s
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:
@@ -26,6 +26,9 @@ jobs:
|
|||||||
- name: Checkout source
|
- name: Checkout source
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Prepare output directory
|
||||||
|
run: mkdir -p output
|
||||||
|
|
||||||
- name: Clean workspace tarballs before build
|
- name: Clean workspace tarballs before build
|
||||||
run: |
|
run: |
|
||||||
echo "[INFO] Cleaning old tarballs..."
|
echo "[INFO] Cleaning old tarballs..."
|
||||||
@@ -37,8 +40,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
versions=($VERSIONS)
|
versions=($VERSIONS)
|
||||||
|
|
||||||
mkdir -p output
|
|
||||||
|
|
||||||
for version in "${versions[@]}"; do
|
for version in "${versions[@]}"; do
|
||||||
echo "[INFO] Building $version..."
|
echo "[INFO] Building $version..."
|
||||||
docker build --build-arg VERSION=$version -t fithwum/debian-$version-base .
|
docker build --build-arg VERSION=$version -t fithwum/debian-$version-base .
|
||||||
@@ -47,7 +48,8 @@ jobs:
|
|||||||
-v "$(pwd)/output":/output \
|
-v "$(pwd)/output":/output \
|
||||||
-e VERSION="$version" \
|
-e VERSION="$version" \
|
||||||
fithwum/debian-$version-base \
|
fithwum/debian-$version-base \
|
||||||
/scripts/bootstrap-rootfs.sh
|
bash -eux /scripts/bootstrap-rootfs.sh "$version"
|
||||||
|
# /scripts/bootstrap-rootfs.sh
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Debug output folder
|
- name: Debug output folder
|
||||||
@@ -58,9 +60,8 @@ jobs:
|
|||||||
|
|
||||||
- name: List output archives
|
- name: List output archives
|
||||||
run: |
|
run: |
|
||||||
echo "[INFO] Final archive list:"
|
echo "[INFO] Looking for tarballs in output/..."
|
||||||
find . -type f -path './*/debian-*.tar.bz2' -exec ls -lh {} \;
|
find output -name '*.tar.bz2' -exec ls -lh {} \;
|
||||||
|
|
||||||
|
|
||||||
# - name: Debug workspace contents
|
# - name: Debug workspace contents
|
||||||
# run: |
|
# run: |
|
||||||
@@ -87,16 +88,17 @@ jobs:
|
|||||||
|
|
||||||
- name: Copy new archives to upload-repo
|
- name: Copy new archives to upload-repo
|
||||||
run: |
|
run: |
|
||||||
found=$(find . -type f -path './*/debian-*.tar.bz2')
|
found=$(find output -name '*.tar.bz2')
|
||||||
if [ -z "$found" ]; then
|
if [ -z "$found" ]; then
|
||||||
echo "[WARNING] No .tar.bz2 archive found!"
|
echo "[WARNING] No .tar.bz2 archive found!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for filepath in $found; do
|
for filepath in $found; do
|
||||||
version_dir=$(dirname "$filepath")
|
filename=$(basename "$filepath")
|
||||||
mkdir -p upload-repo/"$version_dir"
|
version=$(echo "$filename" | sed -E 's/^debian-([a-z]+)\.tar\.bz2$/\1/')
|
||||||
cp "$filepath" upload-repo/"$version_dir"/
|
mkdir -p upload-repo/"$version"
|
||||||
|
cp "$filepath" upload-repo/"$version"/
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Calculate and store sha256sums in upload-repo
|
- name: Calculate and store sha256sums in upload-repo
|
||||||
|
|||||||
Reference in New Issue
Block a user