From 1eb80227427958f3bb1193c41e51cae8aa719452 Mon Sep 17 00:00:00 2001 From: chenxing Date: Wed, 5 Aug 2026 10:32:46 +0800 Subject: [PATCH] fix: use 192.168.10.160:8083 (host-published nexus) instead of bare 'nexus' hostname --- .gitea/workflows/deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 882917f..54ef49f 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -24,18 +24,18 @@ jobs: rm -rf /tmp/src - name: Login to Nexus docker registry - run: echo '${{ secrets.NEXUS_PASSWORD }}' | docker login -u '${{ secrets.NEXUS_USER }}' --password-stdin nexus:8083 + run: echo '${{ secrets.NEXUS_PASSWORD }}' | docker login -u '${{ secrets.NEXUS_USER }}' --password-stdin 192.168.10.160:8083 - name: Build image (copies docker/cas.war) - run: docker build -f docker/Dockerfile -t nexus:8083/docker-hosted/cassso-service:latest . + run: docker build -f docker/Dockerfile -t 192.168.10.160:8083/docker-hosted/cassso-service:latest . - name: Push image - run: docker push nexus:8083/docker-hosted/cassso-service:latest + run: docker push 192.168.10.160:8083/docker-hosted/cassso-service:latest - name: Deploy on host (infra-infra-net, CAS 端口 8443) run: | docker rm -f cas-sso 2>/dev/null || true - docker run -d --name cas-sso --network infra-infra-net -p 8443:8443 --restart unless-stopped nexus:8083/docker-hosted/cassso-service:latest + docker run -d --name cas-sso --network infra-infra-net -p 8443:8443 --restart unless-stopped 192.168.10.160:8083/docker-hosted/cassso-service:latest - name: Done run: 'echo "CasSsoService deployed -> https://192.168.10.160:8443/login"'