mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 20:25:50 +00:00
testing my gitops v3
This commit is contained in:
parent
4e579f7e07
commit
14107c2ed7
1 changed files with 6 additions and 6 deletions
12
.github/workflows/maven-build.yml
vendored
12
.github/workflows/maven-build.yml
vendored
|
@ -62,18 +62,18 @@ jobs:
|
|||
docker build -t ${{ vars.ACR_NAME }}.azurecr.io/grid-capstone:${{ github.sha }} .
|
||||
docker push ${{ vars.ACR_NAME }}.azurecr.io/grid-capstone:${{ github.sha }}
|
||||
|
||||
- name: My GitOps solution
|
||||
run: |
|
||||
sed -i 's|${{ vars.ACR_NAME }}.azurecr.io/grid-capstone:[0-9a-f]\{40\}|${{ vars.ACR_NAME }}.azurecr.io/grid-capstone:${{ github.sha }}|g' deployment.yml
|
||||
kubectl apply -f deployment.yml
|
||||
|
||||
|
||||
- name: Getting access to the cluster
|
||||
run: |
|
||||
az aks get-credentials --resource-group grid-capstone --name dev-grid-cluster --admin --overwrite-existing
|
||||
kubectl get pods
|
||||
kubectl get nodes
|
||||
|
||||
- name: My GitOps solution
|
||||
run: |
|
||||
sed -i 's|${{ vars.ACR_NAME }}.azurecr.io/grid-capstone:[0-9a-f]\{40\}|${{ vars.ACR_NAME }}.azurecr.io/grid-capstone:${{ github.sha }}|g' deployment.yml
|
||||
kubectl apply -f deployment.yml
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue