chore: update ci-cd.yml
This commit is contained in:
@@ -5,7 +5,8 @@ on:
|
|||||||
branches: [ main, develop ]
|
branches: [ main, develop ]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY_URL: docker-registry:5000
|
REGISTRY_URL: localhost:5000
|
||||||
|
GITEA_URL: localhost:3000
|
||||||
IMAGE_NAME: michaelschiemer
|
IMAGE_NAME: michaelschiemer
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -17,11 +18,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "🔍 Testing network connectivity..."
|
echo "🔍 Testing network connectivity..."
|
||||||
echo "Host entries:"
|
echo "Host entries:"
|
||||||
cat /etc/hosts | grep -E "(gitea|docker-registry)"
|
cat /etc/hosts
|
||||||
echo "Testing Gitea connectivity:"
|
echo "IP-Konfiguration:"
|
||||||
curl -v --connect-timeout 10 http://gitea:3000 || echo "❌ Cannot reach Gitea"
|
ip addr
|
||||||
echo "Testing Registry connectivity:"
|
echo "Testing Gitea connectivity (lokale Adresse):"
|
||||||
curl -v --connect-timeout 10 http://docker-registry:5000/v2/ || echo "❌ Cannot reach Registry"
|
curl -v --connect-timeout 10 http://${GITEA_URL} || echo "❌ Cannot reach Gitea"
|
||||||
|
echo "Testing Registry connectivity (lokale Adresse):"
|
||||||
|
curl -v --connect-timeout 10 http://${REGISTRY_URL}/v2/ || echo "❌ Cannot reach Registry"
|
||||||
|
echo "Alternativer Verbindungstest zum Host:"
|
||||||
|
ping -c 2 localhost || echo "❌ Cannot ping localhost"
|
||||||
|
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user