File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
3
+ name : " Charts: Publish to GHCR OCI"
4
+
5
+ on :
6
+ workflow_dispatch : {}
7
+ pull_request :
8
+ branches : ["coreweave"]
9
+ types : ["opened", "synchronize", "reopened"]
10
+ paths :
11
+ - .github/workflows/publish-chart.yaml
12
+ - " **/*"
13
+
14
+ jobs :
15
+ publish-charts :
16
+ name : Publish chart
17
+ permissions :
18
+ contents : write
19
+ packages : write
20
+ runs-on : ubuntu-22.04
21
+ steps :
22
+ - uses : actions/checkout@v4
23
+ with :
24
+ fetch-depth : 0
25
+
26
+ - name : Set VERSION from VERSION.txt
27
+ id : set_version
28
+ run : echo "VERSION=$(cat VERSION.txt)" >> $GITHUB_ENV
29
+
30
+ - name : Set HELM_VERSION
31
+ run : echo "HELM_VERSION=${{ env.VERSION }}-${GITHUB_SHA::7}" >> $GITHUB_ENV
32
+
33
+ - name : Login to GitHub Container Registry
34
+ uses : docker/login-action@v3
35
+ with :
36
+ registry : ghcr.io
37
+ username : ${{ github.actor }}
38
+ password : ${{ secrets.GITHUB_TOKEN }}
39
+
40
+ - name : Install Helm
41
+ uses : azure/setup-helm@v4
42
+
43
+ - name : Package & Push Helm Charts
44
+ shell : bash
45
+ run : |
46
+ helm package cmd/k8s-operator/deploy/chart --dependency-update --version ${{ env.HELM_VERSION }} --app-version ${{ env.HELM_VERSION }}
47
+ pkg=$(ls tailscale-operator-*.tgz)
48
+ helm push "${pkg}" oci://ghcr.io/${{ github.repository }}/chart
You can’t perform that action at this time.
0 commit comments