mirror of
https://github.com/JuLi0n21/homepage.git
synced 2026-04-19 23:30:06 +00:00
add fail save for failed img fetching at build time
This commit is contained in:
3
.github/workflows/docker-build.yml
vendored
3
.github/workflows/docker-build.yml
vendored
@@ -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 }}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user