+ ADD kubernete config connect
All checks were successful
/ build-and-deploy (push) Successful in 54s
All checks were successful
/ build-and-deploy (push) Successful in 54s
This commit is contained in:
@@ -28,15 +28,13 @@ jobs:
|
|||||||
uses: azure/k8s-set-context@v1
|
uses: azure/k8s-set-context@v1
|
||||||
with:
|
with:
|
||||||
kubeconfig: ${{ secrets.KUBE_CONFIG }}
|
kubeconfig: ${{ secrets.KUBE_CONFIG }}
|
||||||
- name: Check kubernetes connection
|
|
||||||
run: |
|
|
||||||
kubectl get pod
|
|
||||||
- name: Update kpack image
|
- name: Update kpack image
|
||||||
env:
|
env:
|
||||||
SHA: ${{ github.sha }}
|
SHA: ${{ github.sha }}
|
||||||
SHORT_SHA: ${{ steps.short-sha.outputs.sha }}
|
SHORT_SHA: ${{ steps.short-sha.outputs.sha }}
|
||||||
run: |
|
run: |
|
||||||
kp image patch tutorial-image --replace-additional-tag "ghcr.io/hvg-dev/php-test:sha-${SHORT_SHA}" --git-revision "${SHA}" -n test-builder
|
kp image patch tutorial-image --replace-additional-tag "ghcr.io/hvg-dev/php-test:sha-${SHORT_SHA}" --git-revision "${SHA}" -n test-builder
|
||||||
|
kp image status tutorial-image -n test-builder
|
||||||
- name: Wait for build to complete
|
- name: Wait for build to complete
|
||||||
run: |
|
run: |
|
||||||
BUILD=$(kubectl -n test-builder get image tutorial-image -o jsonpath='{.status.buildCounter}')
|
BUILD=$(kubectl -n test-builder get image tutorial-image -o jsonpath='{.status.buildCounter}')
|
||||||
|
|||||||
Reference in New Issue
Block a user