From 8347a5556a71b9a37a6ebcce209ea6f5b8bc37c3 Mon Sep 17 00:00:00 2001 From: Andrej Petras Date: Wed, 13 Dec 2023 19:19:52 +0100 Subject: [PATCH] feat: create product helm (#1) --- .github/workflows/build-release.yml | 13 +++++++++++++ .github/workflows/create-release.yml | 7 +++++++ .github/workflows/product-helm-build.yml | 19 +++++++++++++++++++ .github/workflows/product-helm-update.yml | 11 +++++++++++ docs/README.md | 3 +++ helm/Chart.lock | 6 ++++++ helm/Chart.yaml | 10 ++++++++++ helm/values.yaml | 2 ++ 8 files changed, 71 insertions(+) create mode 100644 .github/workflows/build-release.yml create mode 100644 .github/workflows/create-release.yml create mode 100644 .github/workflows/product-helm-build.yml create mode 100644 .github/workflows/product-helm-update.yml create mode 100644 docs/README.md create mode 100644 helm/Chart.lock create mode 100644 helm/Chart.yaml create mode 100644 helm/values.yaml diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml new file mode 100644 index 0000000..625f8ca --- /dev/null +++ b/.github/workflows/build-release.yml @@ -0,0 +1,13 @@ +name: Build Release +on: + push: + tags: + - '**' +jobs: + helm: + uses: onecx/ci-common/.github/workflows/helm-release.yml@v1 + secrets: inherit + changelog: + uses: onecx/ci-common/.github/workflows/generate-changelog.yml@v1 + needs: helm + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml new file mode 100644 index 0000000..c97eb42 --- /dev/null +++ b/.github/workflows/create-release.yml @@ -0,0 +1,7 @@ +name: Create Release Version +on: + workflow_dispatch: +jobs: + release: + uses: onecx/ci-common/.github/workflows/create-release.yml@v1 + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/product-helm-build.yml b/.github/workflows/product-helm-build.yml new file mode 100644 index 0000000..4a478f4 --- /dev/null +++ b/.github/workflows/product-helm-build.yml @@ -0,0 +1,19 @@ +name: Build helm chart + +on: + push: + branches: + - 'main' + - 'fix/[0-9]+.[0-9]+.x' + paths: + - 'helm/**' + +jobs: + release: + uses: onecx/ci-common/.github/workflows/helm-build.yml@v1 + secrets: inherit + with: + push: true + artifact: '' + helmdir: 'helm' + helmAbsoluteDir: true diff --git a/.github/workflows/product-helm-update.yml b/.github/workflows/product-helm-update.yml new file mode 100644 index 0000000..0459ebe --- /dev/null +++ b/.github/workflows/product-helm-update.yml @@ -0,0 +1,11 @@ +name: Update helm chart dependencies + +on: + workflow_dispatch: + repository_dispatch: + types: [helm-update-deps] + +jobs: + release: + uses: onecx/ci-common/.github/workflows/helm-update-deps.yml@v1 + secrets: inherit diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..c6ed57e --- /dev/null +++ b/docs/README.md @@ -0,0 +1,3 @@ + +How to: +https://onecx.github.io/docs/guides/current/documentation/setup/product.html \ No newline at end of file diff --git a/helm/Chart.lock b/helm/Chart.lock new file mode 100644 index 0000000..3a3fddd --- /dev/null +++ b/helm/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: onecx-announcement-svc + repository: oci://ghcr.io/onecx/charts + version: 0.0.0-rc.3 +digest: sha256:d0594bf62c2df28d60d2c3b42247052deeeceb8e7de5f6becb584d4b8a9ebaf8 +generated: "2023-12-13T19:16:56.560103043+01:00" diff --git a/helm/Chart.yaml b/helm/Chart.yaml new file mode 100644 index 0000000..4daa46c --- /dev/null +++ b/helm/Chart.yaml @@ -0,0 +1,10 @@ +apiversion: v2 +name: onecx-announcement +version: 0.0.0 +appversion: 0.0.0 +dependencies: +- name: onecx-announcement-svc + version: "*-0" + repository: oci://ghcr.io/onecx/charts + condition: "deployment.svc" + alias: "svc" \ No newline at end of file diff --git a/helm/values.yaml b/helm/values.yaml new file mode 100644 index 0000000..2859e77 --- /dev/null +++ b/helm/values.yaml @@ -0,0 +1,2 @@ +deployment: + svc: true \ No newline at end of file