From 0876461c3c74cf9bca45f2e3f5d5eef26eac9b38 Mon Sep 17 00:00:00 2001 From: Loki <59907407+Loki-101@users.noreply.github.com> Date: Thu, 14 Nov 2024 19:36:26 -0800 Subject: [PATCH] Un-clog workflow - final attempt Should fix different random tags failing to build each time the workflow runs --- .github/workflows/build.yml | 1 - Dockerfile | 11 ++++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a1c0b0a..30b65a5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,7 +26,6 @@ jobs: - v1.11.8 - v1.11.9 - v1.11.10 - max-parallel: 2 steps: - name: Checkout code uses: actions/checkout@v4 diff --git a/Dockerfile b/Dockerfile index a0a9ab2..2ce7039 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,9 +26,14 @@ RUN apk update && apk add --no-cache \ inotify-tools # Install yarn and Pterodactyl dependencies, as well as update browserlist -RUN npm install -g yarn && \ - yarn && \ - npx update-browserslist-db@latest +RUN for i in {1..3}; do \ + npm install -g yarn && \ + yarn --network-timeout 120000 && \ + npx update-browserslist-db@latest && \ + break || \ + echo "Attempt $i failed! Retrying..." && \ + sleep 10; \ + done # Download and unzip the latest Blueprint release RUN wget $(curl -s https://api.github.com/repos/BlueprintFramework/framework/releases/latest | grep 'browser_download_url' | cut -d '"' -f 4) -O blueprint.zip \