mirror of
https://github.com/JuLi0n21/homepage.git
synced 2026-04-19 15:20:05 +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 }}
|
||||
|
||||
- name: Build and Push
|
||||
uses: docker/build-push-action@v5
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
netwoks: host
|
||||
tags: |
|
||||
docker.illegalesachen.download/repository/astro-homepage:latest
|
||||
docker.illegalesachen.download/repository/astro-homepage:${{ github.sha }}
|
||||
|
||||
@@ -19,7 +19,11 @@ if (response.ok) {
|
||||
const middle = Math.round(files.length / 2);
|
||||
shuffeld = files.slice(0,middle);
|
||||
images = files.slice(middle);
|
||||
} else {
|
||||
console.error("FAILED TO FETCH");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
|
||||
Reference in New Issue
Block a user