add fail save for failed img fetching at build time

This commit is contained in:
2026-03-02 21:14:40 +01:00
parent 67bbc3cf9a
commit c4da0683ed
2 changed files with 6 additions and 1 deletions

View File

@@ -23,10 +23,11 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push - name: Build and Push
uses: docker/build-push-action@v5 uses: docker/build-push-action@v6
with: with:
context: . context: .
push: true push: true
netwoks: host
tags: | tags: |
docker.illegalesachen.download/repository/astro-homepage:latest docker.illegalesachen.download/repository/astro-homepage:latest
docker.illegalesachen.download/repository/astro-homepage:${{ github.sha }} docker.illegalesachen.download/repository/astro-homepage:${{ github.sha }}

View File

@@ -19,7 +19,11 @@ if (response.ok) {
const middle = Math.round(files.length / 2); const middle = Math.round(files.length / 2);
shuffeld = files.slice(0,middle); shuffeld = files.slice(0,middle);
images = files.slice(middle); images = files.slice(middle);
} else {
console.error("FAILED TO FETCH");
process.exit(1);
} }
--- ---
<!doctype html> <!doctype html>