Retry 1040
This commit is contained in:
@@ -46,8 +46,19 @@ jobs:
|
|||||||
- name: Deploy Application Stack
|
- name: Deploy Application Stack
|
||||||
run: |
|
run: |
|
||||||
echo "Deploying application stack using internal network..."
|
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 \
|
docker run --rm \
|
||||||
--network gitea-stack_gitea_net \
|
--network gitea-stack_gitea_net \
|
||||||
|
--add-host=gitea:$GITEA_IP \
|
||||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
-v /opt/gestion-integral:/app \
|
-v /opt/gestion-integral:/app \
|
||||||
-w /app \
|
-w /app \
|
||||||
|
|||||||
Reference in New Issue
Block a user