Skip to content

Commit

Permalink
Add operator helm chart to nightly release process
Browse files Browse the repository at this point in the history
  • Loading branch information
RafalKorepta committed Jan 3, 2025
1 parent 7b05762 commit cd5be15
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ genschema/genschema.xml
gotohelm/gotohelm.xml
pkg/pkg.xml

helm-operator-release/
1 change: 1 addition & 0 deletions taskfiles/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ tasks:
- task: :goreleaser:build-operator-binaries
- task: :k8s:build-and-push-operator-container-image
# Package and push Operator helm chart to Dockerhub
- task: :k8s:package-and-publish-operator-chart

assert-no-diffs:
desc: "Fail on any unexpected diffs to generated files (CI only)"
Expand Down
13 changes: 13 additions & 0 deletions taskfiles/k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,3 +239,16 @@ tasks:
cmds:
- 'echo "~~~ Creating operator v2 helm e2e tests :k8s:"'
- ./hack/v2-helm-setup.sh

package-and-publish-operator-chart:
cmds:
- defer: 'helm registry logout registry-1.docker.io'
- helm registry login registry-1.docker.io -u {{.DOCKERHUB_USER}} --password {{.DOCKERHUB_TOKEN}}
- mkdir helm-operator-release
- defer 'rm -r helm-operator-release'
- yq -i '.name = "redpanda-operator-nightly"' charts/operator/Chart.yaml
- helm package charts/operator --version "{{.TAG_NAME}}-helm-chart" --destination helm-operator-release --dependency-update
- helm push `ls helm-operator-release/redpanda-operator-nightly*.tgz` oci://registry-1.docker.io/redpandadata
preconditions:
- test -n "$DOCKERHUB_USER"
- test -n "$DOCKERHUB_TOKEN"

0 comments on commit cd5be15

Please sign in to comment.