File tree 3 files changed +41
-9
lines changed
3 files changed +41
-9
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
release :
10
10
runs-on : ubuntu-latest
11
+ permissions :
12
+ contents : write # needed to pull git repo and create "chart-release"
13
+ id-token : write # needed for signing the images with GitHub OIDC Token
11
14
steps :
15
+ - name : Install Cosign
16
+
17
+
18
+ - name : Login to GitHub Container Registry
19
+
20
+ with :
21
+ registry : ghcr.io
22
+ username : ${{ github.actor }}
23
+ password : ${{ secrets.GITHUB_TOKEN }}
24
+
12
25
- name : Checkout
13
26
uses : actions/checkout@v4
14
27
with :
@@ -19,13 +32,20 @@ jobs:
19
32
git config user.name "$GITHUB_ACTOR"
20
33
git config user.email "[email protected] "
21
34
22
-
23
- - name : Set up Helm
24
- uses : azure/setup-helm@v4
25
- with :
26
- version : v3.13.1
27
-
28
35
- name : Run chart-releaser
29
36
30
37
env :
31
38
CR_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
39
+
40
+ - name : Publish chart to ghcr.io
41
+ run : |
42
+ helm package charts/coredns
43
+ helm push coredns-*.tgz oci://ghcr.io/coredns/charts
44
+ rm -rf coredns-*.tgz
45
+
46
+ - name : Sign artifacts with Cosign
47
+ env :
48
+ COSIGN_EXPERIMENTAL : 1
49
+ working-directory : charts/coredns
50
+ run : |-
51
+ cosign sign ghcr.io/coredns/charts/coredns:$(yq .version Chart.yaml) --yes
Original file line number Diff line number Diff line change 1
1
apiVersion : v2
2
2
name : coredns
3
- version : 1.37.2
3
+ version : 1.38.0
4
4
appVersion : 1.11.4
5
5
home : https://coredns.io
6
6
icon : https://coredns.io/images/CoreDNS_Colour_Horizontal.png
@@ -19,5 +19,7 @@ maintainers:
19
19
type : application
20
20
annotations :
21
21
artifacthub.io/changes : |
22
- - kind: fixed
23
- description: Use image.tag for app.kubernetes.io/version label if defined
22
+ - kind: added
23
+ description: Adds publishing to github registry
24
+ - kind: added
25
+ description: Adds signing of helm chart
Original file line number Diff line number Diff line change @@ -34,6 +34,16 @@ The command deploys CoreDNS on the Kubernetes cluster in the default configurati
34
34
35
35
> ** Tip** : List all releases using ` helm list --all-namespaces `
36
36
37
+ ## OCI installing
38
+
39
+ The chart can also be installed using the following:
40
+
41
+ ``` console
42
+ $ helm --namespace=kube-system install coredns oci://ghcr.io/coredns/charts/coredns --version 1.38.0
43
+ ```
44
+
45
+ The command deploys the ` 1.38.0 ` version of CoreDNS on the Kubernetes cluster in the default configuration.
46
+
37
47
## Uninstalling the Chart
38
48
39
49
To uninstall/delete the ` coredns ` deployment:
You can’t perform that action at this time.
0 commit comments