mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-16 21:05:50 +00:00
fixed error
This commit is contained in:
parent
16c13fa7c2
commit
3b6f6d872b
1 changed files with 12 additions and 12 deletions
24
.github/workflows/build.yml
vendored
24
.github/workflows/build.yml
vendored
|
@ -38,19 +38,19 @@ jobs:
|
||||||
docker push ybandala/petclinic:latest
|
docker push ybandala/petclinic:latest
|
||||||
|
|
||||||
- name: Install kubectl
|
- name: Install kubectl
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y kubectl
|
sudo apt-get install -y kubectl
|
||||||
|
|
||||||
- name: Set Minikube context
|
- name: Set Minikube context
|
||||||
run: kubectl config use-context minikube
|
run: kubectl config use-context minikube
|
||||||
|
|
||||||
- name: Deploy to Minikube
|
- name: Deploy to Minikube
|
||||||
run: |
|
run: |
|
||||||
sed -i 's|image: .*|image: your-dockerhub-username/petclinic:'${{ github.sha }}'|' k8s/base/deployment.yaml
|
sed -i 's|image: .*|image: your-dockerhub-username/petclinic:'${{ github.sha }}'|' k8s/base/deployment.yaml
|
||||||
|
|
||||||
# Apply the Kubernetes manifests
|
# Apply the Kubernetes manifests
|
||||||
kubectl apply -f k8s/base/
|
kubectl apply -f k8s/base/
|
||||||
|
|
||||||
# Wait for deployment to complete
|
# Wait for deployment to complete
|
||||||
kubectl rollout status deployment/petclinic -n petclinic-dev --timeout=180s
|
kubectl rollout status deployment/petclinic -n petclinic-dev --timeout=180s
|
||||||
|
|
Loading…
Reference in a new issue