Retry 1040

This commit is contained in:
2025-06-17 10:41:00 -03:00
parent 2febe9967b
commit f841252783

View File

@@ -46,8 +46,19 @@ jobs:
- name: Deploy Application Stack
run: |
echo "Deploying application stack using internal network..."
# Obtenemos la IP Virtual del SERVICIO de gitea. Este es el método robusto.
GITEA_IP=$(docker service inspect gitea-stack_gitea --format '{{range .Endpoint.VirtualIPs}}{{.Addr}}{{end}}' | cut -d'/' -f1)
if [ -z "$GITEA_IP" ]; then
echo "Error: Could not find Gitea service IP."
exit 1
fi
echo "Gitea internal IP found: $GITEA_IP"
docker run --rm \
--network gitea-stack_gitea_net \
--add-host=gitea:$GITEA_IP \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /opt/gestion-integral:/app \
-w /app \