workflow changes chat
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "=== Gitea Registry Diagnostic Script ==="
|
||||
echo "Checking Gitea container registry configuration..."
|
||||
|
||||
# Check if registry endpoint exists
|
||||
echo "1. Testing registry endpoint..."
|
||||
curl -s -o /dev/null -w "HTTP Status: %{http_code}\n" https://gitea.skalas.org/v2/ || echo "Registry endpoint not reachable"
|
||||
|
||||
# Check if packages are enabled in Gitea
|
||||
echo "2. Testing packages endpoint..."
|
||||
curl -s -o /dev/null -w "HTTP Status: %{http_code}\n" https://gitea.skalas.org/api/packages || echo "Packages endpoint not available"
|
||||
|
||||
# Check Docker registry v2 API
|
||||
echo "3. Testing Docker registry v2 API..."
|
||||
curl -s https://gitea.skalas.org/v2/_catalog || echo "Registry catalog not available"
|
||||
|
||||
# Check if we can reach the specific repository
|
||||
echo "4. Testing repository endpoint..."
|
||||
curl -s https://gitea.skalas.org/v2/jskala/nfoguard/tags/list || echo "Repository not available"
|
||||
|
||||
# Test authentication
|
||||
echo "5. Testing authentication..."
|
||||
echo "Enter your Gitea username:"
|
||||
read -r username
|
||||
echo "Enter your Gitea password/token:"
|
||||
read -rs password
|
||||
|
||||
echo "Testing authenticated access..."
|
||||
curl -s -u "$username:$password" https://gitea.skalas.org/v2/_catalog || echo "Authentication failed"
|
||||
|
||||
echo "=== Diagnostic complete ==="
|
||||
Reference in New Issue
Block a user