Skip to content

Commit

Permalink
Merge pull request #21 from zapier/add-release-helm
Browse files Browse the repository at this point in the history
Release helm chart on new tag
  • Loading branch information
Matt Morrison authored Jul 7, 2023
2 parents 2cb9bdf + d8a66c7 commit aba325f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ build:

release:
BUILD +release-docker
BUILD +release-helm

go-deps:
ARG GOLANG_VERSION="1.19.3"
Expand Down Expand Up @@ -176,7 +177,7 @@ test-helm:
RUN ct --config ./.github/ct.yaml lint ./charts

release-helm:
ARG CHART_RELEASER_VERSION="1.4.1"
ARG CHART_RELEASER_VERSION="1.6.0"
ARG HELM_VERSION="3.8.1"
FROM quay.io/helmpack/chart-releaser:v${CHART_RELEASER_VERSION}

Expand Down
4 changes: 2 additions & 2 deletions charts/kubechecks/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
name: kubechecks
description: A Helm chart for kubechecks
version: 0.1.0
appVersion: "1.0.0"
version: 0.1.1
appVersion: "1.0.1"
type: application
maintainers:
- name: zapier
7 changes: 6 additions & 1 deletion charts/kubechecks/tests/basic_configmap_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ values: [basics.min-values.yaml]

tests:
- it: should render
chart:
appVersion: 1.0.0
version: 0.1.0
release:
name: kubechecks
asserts:
- isKind:
of: ConfigMap
Expand All @@ -17,7 +22,7 @@ tests:
- equal:
path: metadata.labels
value:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/instance: kubechecks
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: kubechecks
app.kubernetes.io/version: 1.0.0
Expand Down
7 changes: 6 additions & 1 deletion charts/kubechecks/tests/basic_deployment_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ values: [basics.min-values.yaml]

tests:
- it: should render
chart:
appVersion: 1.0.0
version: 0.1.0
release:
name: kubechecks
asserts:
- isKind:
of: Deployment
Expand All @@ -15,7 +20,7 @@ tests:
- equal:
path: metadata.labels
value:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/instance: kubechecks
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: kubechecks
app.kubernetes.io/version: 1.0.0
Expand Down
6 changes: 5 additions & 1 deletion charts/kubechecks/tests/basic_ingress_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ values: [basics.min-values.yaml]

tests:
- it: should render
chart:
version: 999.9.9
release:
name: kubechecks
asserts:
- isKind:
of: Ingress
Expand All @@ -17,7 +21,7 @@ tests:
paths:
- backend:
service:
name: RELEASE-NAME-kubechecks
name: kubechecks
port:
number: 8080
path: /hooks
Expand Down

0 comments on commit aba325f

Please sign in to comment.