From 732c70061857c176a9abfb7287f1229cec3a3ca9 Mon Sep 17 00:00:00 2001 From: Elmar Kresse Date: Thu, 4 Sep 2025 17:38:36 +0200 Subject: [PATCH] refactor: remove preflight registry check and authentication probes for simplification --- .gitea/workflows/docker-build-push.yml | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/.gitea/workflows/docker-build-push.yml b/.gitea/workflows/docker-build-push.yml index d32fe15..ec6204c 100644 --- a/.gitea/workflows/docker-build-push.yml +++ b/.gitea/workflows/docker-build-push.yml @@ -135,27 +135,6 @@ jobs: echo "image_full=$IMAGE_FULL" >> "$GITHUB_OUTPUT" echo "tag_args=$TAG_ARGS" >> "$GITHUB_OUTPUT" - - name: Preflight registry check - env: - REGISTRY: ${{ steps.vars.outputs.registry }} - run: | - set -eu - echo "Probing https://$REGISTRY/v2/" - apk add --no-cache curl >/dev/null 2>&1 || true - curl -sSI "https://$REGISTRY/v2/" | awk '/HTTP\// || /WWW-Authenticate:/ || /Docker-Distribution-Api-Version:/' || true - - - name: Registry auth probe (basic) - env: - REGISTRY: ${{ steps.vars.outputs.registry }} - REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }} - REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }} - run: | - set -eu - apk add --no-cache curl >/dev/null 2>&1 || true - USER_NAME="${REGISTRY_USERNAME:-$GITHUB_ACTOR}" - CODE=$(curl -sS -u "$USER_NAME:${REGISTRY_TOKEN}" -o /dev/null -w "%{http_code}" "https://$REGISTRY/v2/") || CODE=000 - echo "Basic auth probe to https://$REGISTRY/v2/ returned HTTP $CODE" - - name: Log in to Gitea Registry env: REGISTRY: ${{ steps.vars.outputs.registry }}