ci: remove diagnostic verification step - secrets now configured
This commit is contained in:
@@ -23,25 +23,6 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Verify registry secrets
|
||||
run: |
|
||||
echo "=== Registry Login Diagnostic ==="
|
||||
if [ -z "${REGISTRY_USER}" ]; then
|
||||
echo "❌ ERROR: FORGEJO_REGISTRY_USER secret is empty/not set"
|
||||
exit 1
|
||||
fi
|
||||
if [ -z "${REGISTRY_TOKEN}" ]; then
|
||||
echo "❌ ERROR: FORGEJO_REGISTRY_TOKEN secret is empty/not set"
|
||||
exit 1
|
||||
fi
|
||||
echo "✓ REGISTRY_USER is set (length: ${#REGISTRY_USER})"
|
||||
echo "✓ REGISTRY_TOKEN is set (length: ${#REGISTRY_TOKEN})"
|
||||
echo "✓ Registry: ${REGISTRY}"
|
||||
echo "=== Secrets verified successfully ==="
|
||||
env:
|
||||
REGISTRY_USER: ${{ secrets.FORGEJO_REGISTRY_USER }}
|
||||
REGISTRY_TOKEN: ${{ secrets.FORGEJO_REGISTRY_TOKEN }}
|
||||
|
||||
- name: Cargo test
|
||||
run: cargo test -p mem-ingest --lib 2>&1 | tail -50 || true
|
||||
|
||||
@@ -70,13 +51,8 @@ jobs:
|
||||
|
||||
- name: Registry login
|
||||
run: |
|
||||
echo "✓ Attempting login to ${REGISTRY}..."
|
||||
echo "${REGISTRY_TOKEN}" | docker login "${REGISTRY}" \
|
||||
--username "${REGISTRY_USER}" --password-stdin 2>&1 || {
|
||||
echo "❌ Login failed - secrets may be empty or invalid"
|
||||
exit 1
|
||||
}
|
||||
echo "✓ Login successful"
|
||||
--username "${REGISTRY_USER}" --password-stdin
|
||||
env:
|
||||
REGISTRY_USER: ${{ secrets.FORGEJO_REGISTRY_USER }}
|
||||
REGISTRY_TOKEN: ${{ secrets.FORGEJO_REGISTRY_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user