ci: tmp change repository host
This commit is contained in:
@@ -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 }}."
|
||||
Reference in New Issue
Block a user