ci: tmp change repository host

This commit is contained in:
2026-01-05 13:12:44 +08:00
parent 79fc8cff10
commit fce9e4592a

View File

@@ -44,13 +44,13 @@ jobs:
- name: Build Docker image - name: Build Docker image
run: | run: |
cd ${{ gitea.workspace }} 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 - name: Push Docker image to local registry
run: | 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 - name: Deploy to Kubernetes
run: | run: |
cd ${{ gitea.workspace }} 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 kubectl apply -f .gitea/workflows/deploy.yaml
- run: echo "🍏 This job's status is ${{ job.status }}." - run: echo "🍏 This job's status is ${{ job.status }}."