test
All checks were successful
Build RootFS Archives and Push Docker Images / build-rootfs-archives (bookworm) (push) Successful in 2m35s
Build RootFS Archives and Push Docker Images / build-rootfs-archives (bullseye) (push) Successful in 2m24s
Build RootFS Archives and Push Docker Images / build-rootfs-archives (buster) (push) Successful in 2m24s
Build RootFS Archives and Push Docker Images / build-rootfs-archives (docker-build) (push) Successful in 3m31s
Build RootFS Archives and Push Docker Images / build-and-push-docker-images (push) Successful in 39s
All checks were successful
Build RootFS Archives and Push Docker Images / build-rootfs-archives (bookworm) (push) Successful in 2m35s
Build RootFS Archives and Push Docker Images / build-rootfs-archives (bullseye) (push) Successful in 2m24s
Build RootFS Archives and Push Docker Images / build-rootfs-archives (buster) (push) Successful in 2m24s
Build RootFS Archives and Push Docker Images / build-rootfs-archives (docker-build) (push) Successful in 3m31s
Build RootFS Archives and Push Docker Images / build-and-push-docker-images (push) Successful in 39s
This commit is contained in:
@@ -47,28 +47,33 @@ jobs:
|
|||||||
|
|
||||||
git clone "$REPO_URL" upload-repo
|
git clone "$REPO_URL" upload-repo
|
||||||
|
|
||||||
|
# Clean old archives
|
||||||
mkdir -p upload-repo/${{ matrix.version }}
|
mkdir -p upload-repo/${{ matrix.version }}
|
||||||
find upload-repo/${{ matrix.version }} -name '*.tar.bz2' -type f -delete
|
find upload-repo/${{ matrix.version }} -name '*.tar.bz2' -type f -delete
|
||||||
|
|
||||||
# Clean old tarballs
|
# Find and copy archives
|
||||||
for version_dir in bookworm bullseye buster docker-build; do
|
found=$(find . -name '*.tar.bz2')
|
||||||
find upload-repo/"$version_dir" -name '*.tar.bz2' -type f -delete || true
|
if [ -n "$found" ]; then
|
||||||
|
for filepath in $found; do
|
||||||
|
version_dir=$(dirname "$filepath")
|
||||||
|
mkdir -p upload-repo/"$version_dir"
|
||||||
|
cp "$filepath" upload-repo/"$version_dir"/
|
||||||
done
|
done
|
||||||
|
|
||||||
# Find all tarballs recursively in the workspace
|
# Debug list to verify files copied
|
||||||
found=$(find . -name '*.tar.bz2')
|
ls -lR upload-repo
|
||||||
|
|
||||||
if [ -n "$found" ]; then
|
cd upload-repo
|
||||||
for filepath in $found; do
|
|
||||||
version_dir=$(dirname "$filepath")
|
|
||||||
mkdir -p "upload-repo/$version_dir"
|
|
||||||
cp "$filepath" "upload-repo/$version_dir/"
|
|
||||||
done
|
|
||||||
|
|
||||||
cd upload-repo
|
git add **/*.tar.bz2
|
||||||
git add **/*.tar.bz2
|
|
||||||
|
if git diff --cached --quiet; then
|
||||||
|
echo "[INFO] No changes to commit."
|
||||||
|
else
|
||||||
git commit -m "Update base images on $(date -u +'%Y-%m-%dT%H:%M:%SZ')"
|
git commit -m "Update base images on $(date -u +'%Y-%m-%dT%H:%M:%SZ')"
|
||||||
git push
|
git push
|
||||||
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "[WARNING] No .tar.bz2 archive found in workspace!"
|
echo "[WARNING] No .tar.bz2 archive found in workspace!"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user