gfdhfgh
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-rootfs-archives (push) Successful in 9m46s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-docker-images (push) Successful in 2m30s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-build-info (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-changelogs (push) Has been cancelled
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-rootfs-archives (push) Successful in 9m46s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-docker-images (push) Successful in 2m30s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-build-info (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-changelogs (push) Has been cancelled
This commit is contained in:
@@ -128,25 +128,41 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "[INFO] Waiting for archives to appear in upload-repo..."
|
echo "[INFO] Waiting for archives to appear in upload-repo..."
|
||||||
|
|
||||||
GIT_CREDENTIAL="${{ secrets.GIT_TOKEN || secrets.GIT_PASSWORD }}"
|
mkdir -p temp-check
|
||||||
git clone --depth=1 "https://${{ env.GIT_USERNAME }}:${GIT_CREDENTIAL}@gitea.fithwum.tech/fithwum/debian-base.git" upload-repo
|
cd temp-check
|
||||||
|
|
||||||
|
# Retry loop for cloning the upload-repo
|
||||||
|
for i in {1..10}; do
|
||||||
|
echo "[INFO] Attempt $i: Cloning upload-repo..."
|
||||||
|
if git clone --depth=1 "https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@gitea.fithwum.tech/fithwum/debian-base.git"; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
echo "[WARN] Clone failed. Retrying in 10 seconds..."
|
||||||
|
sleep 10
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ ! -d "debian-base" ]; then
|
||||||
|
echo "[ERROR] Failed to clone upload-repo after retries."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd debian-base
|
||||||
|
|
||||||
|
# Wait for all versions to show up
|
||||||
for version in $VERSIONS; do
|
for version in $VERSIONS; do
|
||||||
for i in {1..10}; do
|
for i in {1..30}; do
|
||||||
if [[ -f "temp-check/$version/debian-$version.tar.bz2" ]]; then
|
if [[ -f "$version/debian-$version.tar.bz2" ]]; then
|
||||||
echo "[OK] Found archive for $version"
|
echo "[OK] Found $version archive"
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
echo "[WAIT] $version not ready yet, sleeping 10s..."
|
echo "[WAIT] $version not ready yet, sleeping 10s..."
|
||||||
sleep 10
|
sleep 10
|
||||||
git -C temp-check pull --rebase --quiet
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $i -eq 10 ]]; then
|
|
||||||
echo "[ERROR] Archive $version did not appear in time."
|
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [[ ! -f "$version/debian-$version.tar.bz2" ]]; then
|
||||||
|
echo "[ERROR] $version archive still missing after wait period."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
|
|||||||
Reference in New Issue
Block a user