File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -47,16 +47,19 @@ jobs:
47
47
48
48
- name : Generate Kustomization
49
49
shell : bash
50
+ env :
51
+ KUBECTL_EXTERNAL_DIFF : " colordiff -N -u"
50
52
run : |
53
+ sudo apt-get update 1>/dev/null
54
+ sudo apt-get install colordiff 1>/dev/null
51
55
kubectl kustomize ${{ env.KUBERNETES_MANIFEST_PATH }} --output apply.yml
52
- cat apply.yml
53
-
56
+ kubectl diff --filename apply.yml || true
57
+
54
58
- name : Apply Kustomization
55
59
shell : bash
56
- env :
57
- DRY_RUN : ${{ github.event_name == 'push' && 'none' || 'client' }}
60
+ # env:
61
+ # DRY_RUN: ${{ github.event_name == 'push' && 'none' || 'client' }}
58
62
run : |
59
63
kubectl apply \
60
- --dry-run ${{ env.DRY_RUN }} \
61
64
--filename apply.yml \
62
65
--namespace ${{ env.KUBERNETES_NAMESPACE }}
You can’t perform that action at this time.
0 commit comments