From 9b6abed08981b8b00f50d9d4af0e86defc3864e7 Mon Sep 17 00:00:00 2001 From: agent Date: Sat, 7 Nov 2026 09:08:13 +0100 Subject: Fix workflow: nodejs for checkout, job-level marker path --- .forgejo/workflows/mirror-sync.yml | 10 +++++++--- deploy/config.json | 9 +++++---- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.forgejo/workflows/mirror-sync.yml b/.forgejo/workflows/mirror-sync.yml index a95bad4..c4ee23c 100644 --- a/.forgejo/workflows/mirror-sync.yml +++ b/.forgejo/workflows/mirror-sync.yml @@ -39,9 +39,14 @@ jobs: timeout-minutes: 30 container: image: docker:29-cli + env: + # shared by the verify and publish steps; a step-level env would not be + # visible to the next step + MARKERS_FILE: ${{ runner.temp }}/mirror-markers steps: - name: Install workflow tools - run: apk add --no-cache bash curl git jq + # nodejs is required by actions/checkout inside this image + run: apk add --no-cache bash curl git jq nodejs - name: Check out the marker tags uses: https://github.com/actions/checkout@v4 @@ -54,13 +59,12 @@ jobs: # points at the daemon, so the pull goes over the public hostname and # the real TLS/edge path. VERIFY_PULL: ${{ inputs.verify_all == '1' && 'always' || 'new' }} - MARKERS_FILE: ${{ runner.temp }}/mirror-markers run: ./scripts/verify-mirror.sh - name: Publish marker tags run: | set -eu - file="${MARKERS_FILE:-$RUNNER_TEMP/mirror-markers}" + file="$MARKERS_FILE" [ -s "$file" ] || { echo "no new markers"; exit 0; } while read -r marker; do [ -n "$marker" ] || continue diff --git a/deploy/config.json b/deploy/config.json index 642046a..1a8f7ba 100644 --- a/deploy/config.json +++ b/deploy/config.json @@ -36,9 +36,9 @@ "tlsVerify": true, "onDemand": true, "manifestCheckInterval": "30m", - "maxRetries": 3, - "retryDelay": "5m", - "maxRetryDelay": "30m", + "maxRetries": 1, + "retryDelay": "30s", + "maxRetryDelay": "2m", "content": [ { "prefix": "distroless/static", @@ -80,7 +80,8 @@ "linux/arm64" ] } - ] + ], + "syncTimeout": "5m" } ] } -- cgit v1.2.3