refactor: remove preflight registry check and authentication probes for simplification
All checks were successful
Build and Push Docker Image / docker (push) Successful in 6s
All checks were successful
Build and Push Docker Image / docker (push) Successful in 6s
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user