File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ name: "[UI] Handle previews on PR"
2
2
3
3
on :
4
4
pull_request :
5
+ types :
6
+ - opened
7
+ - synchronize
8
+ - reopened
9
+ - closed
5
10
paths :
6
11
- " opendata.swiss/ui/**" # Only trigger if files in the ui directory change
7
12
- " .github/workflows/previews-ods-ui.yaml" # Trigger also if this workflow file is changed
56
61
kustomize edit set image "ghcr.io/opendata-swiss/ods-ui=ghcr.io/opendata-swiss/ods-ui:sha-${{ steps.vars.outputs.short_sha }}"
57
62
kustomize edit set label "app.kubernetes.io/instance:${{ steps.vars.outputs.branch }}"
58
63
kustomize build | tee manifest.yaml
64
+
65
+ - name : Apply manifests
66
+ working-directory : ./opendata.swiss/ui/k8s
67
+ if : github.event.action != 'closed'
68
+ run : |
69
+ kubectl apply -f manifest.yaml
70
+
71
+ - name : Delete manifests
72
+ working-directory : ./opendata.swiss/ui/k8s
73
+ if : github.event.action == 'closed'
74
+ continue-on-error : true
75
+ run : |
76
+ kubectl delete -f manifest.yaml
You can’t perform that action at this time.
0 commit comments