File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 40
40
- name : Install Helm
41
41
uses : azure/setup-helm@v4
42
42
43
+ - name : Package CRDs
44
+ shell : bash
45
+ run : |
46
+ cat <<EOF > cmd/k8s-operator/deploy/chart/templates/crds.yaml
47
+ {{- if .Values.installCRDs }}
48
+ EOF
49
+ for file in cmd/k8s-operator/deploy/crds/*.yaml; do
50
+ echo "---" >> cmd/k8s-operator/deploy/chart/templates/crds.yaml
51
+ cat "$file" >> cmd/k8s-operator/deploy/chart/templates/crds.yaml
52
+ done
53
+ cat <<EOF >> cmd/k8s-operator/deploy/chart/templates/crds.yaml
54
+ {{- end }}
55
+ EOF
56
+
43
57
- name : Package & Push Helm Charts
44
58
shell : bash
59
+ if : ${{ always() && format('refs/heads/{0}', github.event.repository.default_branch) == github.ref }}
45
60
run : |
46
61
helm package cmd/k8s-operator/deploy/chart --dependency-update --version ${{ env.HELM_VERSION }} --app-version ${{ env.HELM_VERSION }}
47
62
pkg=$(ls tailscale-operator-*.tgz)
Original file line number Diff line number Diff line change 8
8
types : ["opened", "synchronize", "reopened"]
9
9
paths :
10
10
- .github/workflows/publish-image.yaml
11
- - " **/*"
12
11
push :
13
12
branches :
14
13
- coreweave
You can’t perform that action at this time.
0 commit comments