From fce9e4592a18c22fb75e120c4b94f96c8851b18b Mon Sep 17 00:00:00 2001 From: Zpekii Date: Mon, 5 Jan 2026 13:12:44 +0800 Subject: [PATCH] ci: tmp change repository host --- .gitea/workflows/deploy.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index f88c0d7..89dc1cc 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -44,13 +44,13 @@ jobs: - name: Build Docker image run: | cd ${{ gitea.workspace }} - docker build -t localhost:8180/k8s-example/k8s-example:${{ gitea.sha }} . + docker build -t 192.168.1.98:8180/k8s-example/k8s-example:${{ gitea.sha }} . - name: Push Docker image to local registry run: | - docker push localhost:8180/k8s-example/k8s-example:${{ gitea.sha }} + docker push 192.168.1.98:8180/k8s-example/k8s-example:${{ gitea.sha }} - name: Deploy to Kubernetes run: | cd ${{ gitea.workspace }} - sed -i "s|localhost:8180/k8s-example/k8s-example:latest|localhost:8180/k8s-example/k8s-example:${{ gitea.sha }}|g" .gitea/workflows/deploy.yaml + sed -i "s|localhost:8180/k8s-example/k8s-example:latest|192.168.1.98:8180/k8s-example/k8s-example:${{ gitea.sha }}|g" .gitea/workflows/deploy.yaml kubectl apply -f .gitea/workflows/deploy.yaml - run: echo "🍏 This job's status is ${{ job.status }}." \ No newline at end of file