From a53ab3b2a00dd6ef97b251b7c0b5b6fc9dfbe430 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 12:36:09 +0100 Subject: [PATCH 01/38] wip(ci): run gitea action --- .gitea/workflows/markdown-linters.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .gitea/workflows/markdown-linters.yaml diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml new file mode 100644 index 0000000..b0d631e --- /dev/null +++ b/.gitea/workflows/markdown-linters.yaml @@ -0,0 +1,18 @@ +name: Markdown linter + +on: + pull_request: + paths: [ "**/*.md" ] + types: [ "opened", "reopened", "synchronize" ] + push: + paths: [ "**/*.md" ] + workflow_dispatch: {} + +jobs: + markdown-link-checker: + container: docker.io/library/node:22.9.0-alpine + runs-on: + - ubuntu-latest + steps: + - name: Check Links in Markdown files + run: npm install && npm run readme:link \ No newline at end of file -- 2.45.2 From a3358b0be554d227f8534aa08bbdad25edfd7b73 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 12:37:50 +0100 Subject: [PATCH 02/38] wip --- .gitea/workflows/markdown-linters.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml index b0d631e..4f31aaf 100644 --- a/.gitea/workflows/markdown-linters.yaml +++ b/.gitea/workflows/markdown-linters.yaml @@ -1,11 +1,11 @@ name: Markdown linter on: - pull_request: - paths: [ "**/*.md" ] - types: [ "opened", "reopened", "synchronize" ] - push: - paths: [ "**/*.md" ] + # pull_request: + # paths: [ "**/*.md" ] + # types: [ "opened", "reopened", "synchronize" ] + push: {} + # paths: [ "**/*.md" ] workflow_dispatch: {} jobs: -- 2.45.2 From 0cc2323eb142b1843fd86a3e1e666520daf02d59 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 12:40:39 +0100 Subject: [PATCH 03/38] WIP --- .gitea/workflows/markdown-linters.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml index 4f31aaf..9683e4d 100644 --- a/.gitea/workflows/markdown-linters.yaml +++ b/.gitea/workflows/markdown-linters.yaml @@ -15,4 +15,4 @@ jobs: - ubuntu-latest steps: - name: Check Links in Markdown files - run: npm install && npm run readme:link \ No newline at end of file + run: ls -la \ No newline at end of file -- 2.45.2 From da18fbf50c6c18b614eb0b87fe6ffe678fc25765 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 12:42:11 +0100 Subject: [PATCH 04/38] WIP --- .gitea/workflows/markdown-linters.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml index 9683e4d..a50bb04 100644 --- a/.gitea/workflows/markdown-linters.yaml +++ b/.gitea/workflows/markdown-linters.yaml @@ -14,5 +14,6 @@ jobs: runs-on: - ubuntu-latest steps: + - uses: actions/checkout@v4.2.2 - name: Check Links in Markdown files - run: ls -la \ No newline at end of file + run: npm install && npm run readme:link \ No newline at end of file -- 2.45.2 From de3c85ba4db47302b80b0309de30402dc006cc34 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 12:55:39 +0100 Subject: [PATCH 05/38] WIP --- .gitea/workflows/markdown-linters.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml index a50bb04..21bd88c 100644 --- a/.gitea/workflows/markdown-linters.yaml +++ b/.gitea/workflows/markdown-linters.yaml @@ -15,5 +15,6 @@ jobs: - ubuntu-latest steps: - uses: actions/checkout@v4.2.2 - - name: Check Links in Markdown files - run: npm install && npm run readme:link \ No newline at end of file + with: + github-server-url: https://git.cryptic.systems + - run: npm install && npm run readme:link \ No newline at end of file -- 2.45.2 From 5744511f6eff3ba4345a46370c4e971fee3c104f Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 12:59:30 +0100 Subject: [PATCH 06/38] WIP --- .gitea/workflows/markdown-linters.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml index 21bd88c..3f73064 100644 --- a/.gitea/workflows/markdown-linters.yaml +++ b/.gitea/workflows/markdown-linters.yaml @@ -10,7 +10,7 @@ on: jobs: markdown-link-checker: - container: docker.io/library/node:22.9.0-alpine + container: ghcr.io/renovatebot/renovate:39.103.0 runs-on: - ubuntu-latest steps: -- 2.45.2 From c0aadbfa52f6983ab514a86e69ca6e72c409feab Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 13:07:06 +0100 Subject: [PATCH 07/38] WIP --- .gitea/workflows/markdown-linters.yaml | 12 ++++++++---- Makefile | 4 ++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml index 3f73064..dd7203e 100644 --- a/.gitea/workflows/markdown-linters.yaml +++ b/.gitea/workflows/markdown-linters.yaml @@ -10,11 +10,15 @@ on: jobs: markdown-link-checker: - container: ghcr.io/renovatebot/renovate:39.103.0 runs-on: - ubuntu-latest steps: - uses: actions/checkout@v4.2.2 - with: - github-server-url: https://git.cryptic.systems - - run: npm install && npm run readme:link \ No newline at end of file + - run: | + apt update --yes + apt install --yes build-essential + - env: + HELM_IMAGE_REGISTRY_HOST: harbor.cryptic.systems + HELM_IMAGE_REPOSITORY: docker/library/node + run: | + make container-run/readme/link \ No newline at end of file diff --git a/Makefile b/Makefile index 389616d..6bb1e0e 100644 --- a/Makefile +++ b/Makefile @@ -3,13 +3,13 @@ CONTAINER_RUNTIME?=$(shell which podman) # HELM_IMAGE HELM_IMAGE_REGISTRY_HOST?=docker.io -HELM_IMAGE_REPOSITORY=volkerraschek/helm +HELM_IMAGE_REPOSITORY?=volkerraschek/helm HELM_IMAGE_VERSION?=3.16.1 # renovate: datasource=docker registryUrl=https://docker.io depName=volkerraschek/helm HELM_IMAGE_FULLY_QUALIFIED=${HELM_IMAGE_REGISTRY_HOST}/${HELM_IMAGE_REPOSITORY}:${HELM_IMAGE_VERSION} # NODE_IMAGE NODE_IMAGE_REGISTRY_HOST?=docker.io -NODE_IMAGE_REPOSITORY=library/node +NODE_IMAGE_REPOSITORY?=library/node NODE_IMAGE_VERSION?=22.9.0-alpine # renovate: datasource=docker registryUrl=https://docker.io depName=library/node NODE_IMAGE_FULLY_QUALIFIED=${NODE_IMAGE_REGISTRY_HOST}/${NODE_IMAGE_REPOSITORY}:${NODE_IMAGE_VERSION} -- 2.45.2 From 22f0fd41762d79da25189011c1286d822e49fdb8 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 13:10:56 +0100 Subject: [PATCH 08/38] fix: container runtime --- .gitea/workflows/markdown-linters.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml index dd7203e..02ef0b1 100644 --- a/.gitea/workflows/markdown-linters.yaml +++ b/.gitea/workflows/markdown-linters.yaml @@ -14,10 +14,13 @@ jobs: - ubuntu-latest steps: - uses: actions/checkout@v4.2.2 - - run: | + - name: Install build tools + run: | apt update --yes apt install --yes build-essential - - env: + - name: Verify links in markdown files + env: + CONTAINER_RUNTIME: docker HELM_IMAGE_REGISTRY_HOST: harbor.cryptic.systems HELM_IMAGE_REPOSITORY: docker/library/node run: | -- 2.45.2 From bde198ab0fd3808f3b3fc2b3197424230d23393f Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 13:15:40 +0100 Subject: [PATCH 09/38] wip --- .gitea/workflows/markdown-linters.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml index 02ef0b1..b23d941 100644 --- a/.gitea/workflows/markdown-linters.yaml +++ b/.gitea/workflows/markdown-linters.yaml @@ -14,14 +14,15 @@ jobs: - ubuntu-latest steps: - uses: actions/checkout@v4.2.2 - - name: Install build tools - run: | - apt update --yes - apt install --yes build-essential + # - name: Install build tools + # run: | + # apt update --yes + # apt install --yes build-essential - name: Verify links in markdown files env: CONTAINER_RUNTIME: docker HELM_IMAGE_REGISTRY_HOST: harbor.cryptic.systems HELM_IMAGE_REPOSITORY: docker/library/node run: | + ls -la $(pwd) make container-run/readme/link \ No newline at end of file -- 2.45.2 From 6f6ad61352f07784bd6a89b7467964c2a06c2ee4 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 13:30:48 +0100 Subject: [PATCH 10/38] test --- .gitea/workflows/markdown-linters.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml index b23d941..768517e 100644 --- a/.gitea/workflows/markdown-linters.yaml +++ b/.gitea/workflows/markdown-linters.yaml @@ -10,9 +10,15 @@ on: jobs: markdown-link-checker: + container: + image: docker.io/library/node:22.9.0-alpine + options: --entrypoint /bin/sh runs-on: - ubuntu-latest steps: + - run: | + apk update + apk add git - uses: actions/checkout@v4.2.2 # - name: Install build tools # run: | @@ -24,5 +30,6 @@ jobs: HELM_IMAGE_REGISTRY_HOST: harbor.cryptic.systems HELM_IMAGE_REPOSITORY: docker/library/node run: | + pwd ls -la $(pwd) make container-run/readme/link \ No newline at end of file -- 2.45.2 From 86bbd6f1d233ba213fe8fe752fa68212dfddb0bf Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 13:32:14 +0100 Subject: [PATCH 11/38] fix --- .gitea/workflows/markdown-linters.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml index 768517e..70bc438 100644 --- a/.gitea/workflows/markdown-linters.yaml +++ b/.gitea/workflows/markdown-linters.yaml @@ -12,13 +12,13 @@ jobs: markdown-link-checker: container: image: docker.io/library/node:22.9.0-alpine - options: --entrypoint /bin/sh + # options: --entrypoint /bin/sh runs-on: - ubuntu-latest steps: - run: | apk update - apk add git + apk install - uses: actions/checkout@v4.2.2 # - name: Install build tools # run: | -- 2.45.2 From 1e0cdc6dfdedd137df5dfbb91e9859fbd0e15a2b Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 13:32:59 +0100 Subject: [PATCH 12/38] asdasd --- .gitea/workflows/markdown-linters.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml index 70bc438..2c7f029 100644 --- a/.gitea/workflows/markdown-linters.yaml +++ b/.gitea/workflows/markdown-linters.yaml @@ -18,7 +18,7 @@ jobs: steps: - run: | apk update - apk install + apk add git - uses: actions/checkout@v4.2.2 # - name: Install build tools # run: | -- 2.45.2 From 3be397723362110771b67c94243bc835e258b0a1 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 13:33:54 +0100 Subject: [PATCH 13/38] fix --- .gitea/workflows/markdown-linters.yaml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml index 2c7f029..a61ea12 100644 --- a/.gitea/workflows/markdown-linters.yaml +++ b/.gitea/workflows/markdown-linters.yaml @@ -20,16 +20,5 @@ jobs: apk update apk add git - uses: actions/checkout@v4.2.2 - # - name: Install build tools - # run: | - # apt update --yes - # apt install --yes build-essential - name: Verify links in markdown files - env: - CONTAINER_RUNTIME: docker - HELM_IMAGE_REGISTRY_HOST: harbor.cryptic.systems - HELM_IMAGE_REPOSITORY: docker/library/node - run: | - pwd - ls -la $(pwd) - make container-run/readme/link \ No newline at end of file + run: npm install && npm run readme:link \ No newline at end of file -- 2.45.2 From 208acd6d96b75ba42efa0680f68af7c2b4f3d5ea Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 13:34:44 +0100 Subject: [PATCH 14/38] fix --- .gitea/workflows/markdown-linters.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml index a61ea12..cc06f49 100644 --- a/.gitea/workflows/markdown-linters.yaml +++ b/.gitea/workflows/markdown-linters.yaml @@ -16,7 +16,8 @@ jobs: runs-on: - ubuntu-latest steps: - - run: | + - name: Install tooling + run: | apk update apk add git - uses: actions/checkout@v4.2.2 -- 2.45.2 From 3e868aad3549f7010441c77aee29bd887e467b7d Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 13:39:45 +0100 Subject: [PATCH 15/38] fix --- .gitea/workflows/markdown-linters.yaml | 43 +++++++++++++++++++++----- 1 file changed, 36 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml index cc06f49..2b15e89 100644 --- a/.gitea/workflows/markdown-linters.yaml +++ b/.gitea/workflows/markdown-linters.yaml @@ -1,18 +1,17 @@ name: Markdown linter on: - # pull_request: - # paths: [ "**/*.md" ] - # types: [ "opened", "reopened", "synchronize" ] - push: {} - # paths: [ "**/*.md" ] + pull_request: + paths: [ "**/*.md" ] + types: [ "opened", "reopened", "synchronize" ] + push: + paths: [ "**/*.md" ] workflow_dispatch: {} jobs: markdown-link-checker: container: image: docker.io/library/node:22.9.0-alpine - # options: --entrypoint /bin/sh runs-on: - ubuntu-latest steps: @@ -22,4 +21,34 @@ jobs: apk add git - uses: actions/checkout@v4.2.2 - name: Verify links in markdown files - run: npm install && npm run readme:link \ No newline at end of file + run: npm install && npm run readme:link + + markdown-lint: + container: + image: docker.io/library/node:22.9.0-alpine + runs-on: + - ubuntu-latest + steps: + - name: Install tooling + run: | + apk update + apk add git + - uses: actions/checkout@v4.2.2 + - name: Link markdown files + run: npm install && npm run readme:lint + + generate-parameters: + container: + image: docker.io/library/node:22.9.0-alpine + runs-on: + - ubuntu-latest + steps: + - name: Install tooling + run: | + apk update + apk add git + - uses: actions/checkout@v4.2.2 + - name: Generate parameter section in README + run: npm run readme:parameters + - name: Compare diff + run: git diff --exit-code --name-only README.md -- 2.45.2 From e1f37b8ac93a753a30179e3609496ac0b7668131 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 13:42:00 +0100 Subject: [PATCH 16/38] asd --- .gitea/workflows/markdown-linters.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml index 2b15e89..fcb197f 100644 --- a/.gitea/workflows/markdown-linters.yaml +++ b/.gitea/workflows/markdown-linters.yaml @@ -4,8 +4,8 @@ on: pull_request: paths: [ "**/*.md" ] types: [ "opened", "reopened", "synchronize" ] - push: - paths: [ "**/*.md" ] + push: {} + # paths: [ "**/*.md" ] workflow_dispatch: {} jobs: -- 2.45.2 From cc955c617863e373698c7bf9c4b554987dd02a44 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 13:44:48 +0100 Subject: [PATCH 17/38] asdas --- .gitea/workflows/markdown-linters.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml index fcb197f..ba67589 100644 --- a/.gitea/workflows/markdown-linters.yaml +++ b/.gitea/workflows/markdown-linters.yaml @@ -21,7 +21,9 @@ jobs: apk add git - uses: actions/checkout@v4.2.2 - name: Verify links in markdown files - run: npm install && npm run readme:link + run: | + npm install + npm run readme:link markdown-lint: container: @@ -34,8 +36,10 @@ jobs: apk update apk add git - uses: actions/checkout@v4.2.2 - - name: Link markdown files - run: npm install && npm run readme:lint + - name: Lint markdown files + run: | + npm install + npm run readme:lint generate-parameters: container: @@ -49,6 +53,8 @@ jobs: apk add git - uses: actions/checkout@v4.2.2 - name: Generate parameter section in README - run: npm run readme:parameters + run: | + npm install + npm run readme:parameters - name: Compare diff run: git diff --exit-code --name-only README.md -- 2.45.2 From cc33ca2e0c5eae23f0afb717b72692a974e957c8 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 13:49:51 +0100 Subject: [PATCH 18/38] fix --- .gitea/workflows/generate-readme.yaml | 28 ++++++++++++++++++++++++++ .gitea/workflows/markdown-linters.yaml | 22 ++------------------ 2 files changed, 30 insertions(+), 20 deletions(-) create mode 100644 .gitea/workflows/generate-readme.yaml diff --git a/.gitea/workflows/generate-readme.yaml b/.gitea/workflows/generate-readme.yaml new file mode 100644 index 0000000..c47a6a5 --- /dev/null +++ b/.gitea/workflows/generate-readme.yaml @@ -0,0 +1,28 @@ +name: Generate README + +on: + pull_request: + paths: [ "README.md", "values.yaml" ] + types: [ "opened", "reopened", "synchronize" ] + push: + paths: [ "README.md", "values.yaml" ] + workflow_dispatch: {} + +jobs: + generate-parameters: + container: + image: docker.io/library/node:22.9.0-alpine + runs-on: + - ubuntu-latest + steps: + - name: Install tooling + run: | + apk update + apk add git + - uses: actions/checkout@v4.2.2 + - name: Generate parameter section in README + run: | + npm install + npm run readme:parameters + - name: Compare diff + run: git diff --exit-code --name-only README.md diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml index ba67589..c259df2 100644 --- a/.gitea/workflows/markdown-linters.yaml +++ b/.gitea/workflows/markdown-linters.yaml @@ -4,8 +4,8 @@ on: pull_request: paths: [ "**/*.md" ] types: [ "opened", "reopened", "synchronize" ] - push: {} - # paths: [ "**/*.md" ] + push: + paths: [ "**/*.md" ] workflow_dispatch: {} jobs: @@ -40,21 +40,3 @@ jobs: run: | npm install npm run readme:lint - - generate-parameters: - container: - image: docker.io/library/node:22.9.0-alpine - runs-on: - - ubuntu-latest - steps: - - name: Install tooling - run: | - apk update - apk add git - - uses: actions/checkout@v4.2.2 - - name: Generate parameter section in README - run: | - npm install - npm run readme:parameters - - name: Compare diff - run: git diff --exit-code --name-only README.md -- 2.45.2 From b52a4982a6576a56b70e429926f3efbcdcff0175 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 13:50:30 +0100 Subject: [PATCH 19/38] test --- .gitea/workflows/generate-readme.yaml | 2 +- .gitea/workflows/markdown-linters.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/generate-readme.yaml b/.gitea/workflows/generate-readme.yaml index c47a6a5..054248a 100644 --- a/.gitea/workflows/generate-readme.yaml +++ b/.gitea/workflows/generate-readme.yaml @@ -5,7 +5,7 @@ on: paths: [ "README.md", "values.yaml" ] types: [ "opened", "reopened", "synchronize" ] push: - paths: [ "README.md", "values.yaml" ] + # paths: [ "README.md", "values.yaml" ] workflow_dispatch: {} jobs: diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml index c259df2..86a1d1c 100644 --- a/.gitea/workflows/markdown-linters.yaml +++ b/.gitea/workflows/markdown-linters.yaml @@ -5,7 +5,7 @@ on: paths: [ "**/*.md" ] types: [ "opened", "reopened", "synchronize" ] push: - paths: [ "**/*.md" ] + # paths: [ "**/*.md" ] workflow_dispatch: {} jobs: -- 2.45.2 From a9abdccaa340304311dfcc902de3e5f105955841 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 14:01:47 +0100 Subject: [PATCH 20/38] wip --- .gitea/workflows/generate-readme.yaml | 2 +- .gitea/workflows/helm.yaml | 40 ++++++++++++++++++++++++++ .gitea/workflows/markdown-linters.yaml | 2 +- 3 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 .gitea/workflows/helm.yaml diff --git a/.gitea/workflows/generate-readme.yaml b/.gitea/workflows/generate-readme.yaml index 054248a..c47a6a5 100644 --- a/.gitea/workflows/generate-readme.yaml +++ b/.gitea/workflows/generate-readme.yaml @@ -5,7 +5,7 @@ on: paths: [ "README.md", "values.yaml" ] types: [ "opened", "reopened", "synchronize" ] push: - # paths: [ "README.md", "values.yaml" ] + paths: [ "README.md", "values.yaml" ] workflow_dispatch: {} jobs: diff --git a/.gitea/workflows/helm.yaml b/.gitea/workflows/helm.yaml new file mode 100644 index 0000000..0d8e97f --- /dev/null +++ b/.gitea/workflows/helm.yaml @@ -0,0 +1,40 @@ +name: Helm + +on: + pull_request: + paths: [ "templates/prometheus-postgres-exporter/*.yaml" ] + types: [ "opened", "reopened", "synchronize" ] + push: + # paths: [ "templates/prometheus-postgres-exporter/*.yaml" ] + workflow_dispatch: {} + +jobs: + helm-lint: + container: + image: docker.io/volkerraschek/helm:3.16.1 + runs-on: + - ubuntu-latest + steps: + - name: Install tooling + run: | + apk update + apk add git + - uses: actions/checkout@v4.2.2 + - name: Lint helm files + run: | + helm lint --values values.yaml . + + helm-unittest: + container: + image: docker.io/volkerraschek/helm:3.16.1 + runs-on: + - ubuntu-latest + steps: + - name: Install tooling + run: | + apk update + apk add git + - uses: actions/checkout@v4.2.2 + - name: Unittest + run: | + helm unittest --strict --file 'unittests/**/*.yaml' ./ \ No newline at end of file diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml index 86a1d1c..c259df2 100644 --- a/.gitea/workflows/markdown-linters.yaml +++ b/.gitea/workflows/markdown-linters.yaml @@ -5,7 +5,7 @@ on: paths: [ "**/*.md" ] types: [ "opened", "reopened", "synchronize" ] push: - # paths: [ "**/*.md" ] + paths: [ "**/*.md" ] workflow_dispatch: {} jobs: -- 2.45.2 From fe2ab4417f072c0ce0ed9db70e3cb1d0232d9b44 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 14:15:16 +0100 Subject: [PATCH 21/38] wip --- .gitea/workflows/helm.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/helm.yaml b/.gitea/workflows/helm.yaml index 0d8e97f..24bad1b 100644 --- a/.gitea/workflows/helm.yaml +++ b/.gitea/workflows/helm.yaml @@ -18,7 +18,7 @@ jobs: - name: Install tooling run: | apk update - apk add git + apk add git node - uses: actions/checkout@v4.2.2 - name: Lint helm files run: | -- 2.45.2 From 7937f9edf2076ad66317bba0460960f4884630dc Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 14:15:54 +0100 Subject: [PATCH 22/38] asd --- .gitea/workflows/helm.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/helm.yaml b/.gitea/workflows/helm.yaml index 24bad1b..9c47e1a 100644 --- a/.gitea/workflows/helm.yaml +++ b/.gitea/workflows/helm.yaml @@ -18,7 +18,7 @@ jobs: - name: Install tooling run: | apk update - apk add git node + apk add git npm - uses: actions/checkout@v4.2.2 - name: Lint helm files run: | -- 2.45.2 From 7265403bd916f82eff9d62e84b3280e65ff36597 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 14:16:49 +0100 Subject: [PATCH 23/38] faasd --- .gitea/workflows/helm.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/helm.yaml b/.gitea/workflows/helm.yaml index 9c47e1a..c5d836c 100644 --- a/.gitea/workflows/helm.yaml +++ b/.gitea/workflows/helm.yaml @@ -33,7 +33,7 @@ jobs: - name: Install tooling run: | apk update - apk add git + apk add git npm - uses: actions/checkout@v4.2.2 - name: Unittest run: | -- 2.45.2 From 89c43d7fb41e7d0c4a146fbfeb6c30fd4ebd14c5 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 14:19:50 +0100 Subject: [PATCH 24/38] fix --- .gitea/workflows/helm.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitea/workflows/helm.yaml b/.gitea/workflows/helm.yaml index c5d836c..5e025b8 100644 --- a/.gitea/workflows/helm.yaml +++ b/.gitea/workflows/helm.yaml @@ -2,10 +2,8 @@ name: Helm on: pull_request: - paths: [ "templates/prometheus-postgres-exporter/*.yaml" ] types: [ "opened", "reopened", "synchronize" ] - push: - # paths: [ "templates/prometheus-postgres-exporter/*.yaml" ] + push: {} workflow_dispatch: {} jobs: -- 2.45.2 From 378e799afa6191f1849aee6a2969fa5b29929364 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 20:23:30 +0100 Subject: [PATCH 25/38] wip --- .gitea/workflows/release.yaml | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .gitea/workflows/release.yaml diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml new file mode 100644 index 0000000..379e8c6 --- /dev/null +++ b/.gitea/workflows/release.yaml @@ -0,0 +1,48 @@ +name: Release + +on: + push: + tags: + - "*" + +env: + # renovate: datasource=docker depName=alpine/helm + HELM_VERSION: "3.16.4" + +jobs: + generate-chart-publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: install tools + run: | + apt update --yes + apt install --yes curl ca-certificates curl gnupg + # helm + curl --location --output helm-v${HELM_VERSION}-linux-amd64.tar.gz https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz + tar --extract --gzip --file helm-v${HELM_VERSION}-linux-amd64.tar.gz + mv linux-amd64/helm /usr/local/bin/ + rm -rf linux-amd64 helm-v${HELM_VERSION}-linux-amd64.tar.gz + helm version + + # - name: Import GPG key + # id: import_gpg + # uses: https://github.com/crazy-max/ghaction-import-gpg@v6 + # with: + # gpg_private_key: ${{ secrets.GPGSIGN_KEY }} + # passphrase: ${{ secrets.GPGSIGN_PASSPHRASE }} + # fingerprint: CC64B1DB67ABBEECAB24B6455FC346329753F4B0 + + # Using helm gpg plugin as 'helm package --sign' has issues with gpg2: https://github.com/helm/helm/issues/2843 + - name: package chart + run: | + helm dependency build + helm package --version "${GITHUB_REF#refs/tags/v}" ./ + # mkdir gitea + # mv gitea*.tgz gitea/ + # curl -s -L -o gitea/index.yaml https://dl.gitea.com/charts/index.yaml + # helm repo index gitea/ --url https://dl.gitea.com/charts --merge gitea/index.yaml + # # push to dockerhub + # echo ${{ secrets.DOCKER_CHARTS_PASSWORD }} | helm registry login -u ${{ secrets.DOCKER_CHARTS_USERNAME }} registry-1.docker.io --password-stdin + # helm push gitea/gitea-${GITHUB_REF#refs/tags/v}.tgz oci://registry-1.docker.io/giteacharts + # helm registry logout registry-1.docker.io -- 2.45.2 From 0a72c4bb58d483dbcb86afc0b842d23e4a57bea2 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 12 Jan 2025 15:08:20 +0100 Subject: [PATCH 26/38] fix: only on yaml --- .gitea/workflows/helm.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.gitea/workflows/helm.yaml b/.gitea/workflows/helm.yaml index 5e025b8..6120b9f 100644 --- a/.gitea/workflows/helm.yaml +++ b/.gitea/workflows/helm.yaml @@ -17,6 +17,17 @@ jobs: run: | apk update apk add git npm + - name: Check if files were touched + uses: dorny/paths-filter@v3.0.2 + id: changes + with: + filters: | + yaml: + - '**/*.yaml' + - '**/*.yml' + - name: Skip further steps, when condition is not met + if: steps.filter.outputs.yaml == 'false' + run: exit 0 - uses: actions/checkout@v4.2.2 - name: Lint helm files run: | @@ -32,6 +43,17 @@ jobs: run: | apk update apk add git npm + - name: Check if files were touched + uses: dorny/paths-filter@v3.0.2 + id: changes + with: + filters: | + yaml: + - '**/*.yaml' + - '**/*.yml' + - name: Skip further steps, when condition is not met + if: steps.filter.outputs.yaml == 'false' + run: exit 0 - uses: actions/checkout@v4.2.2 - name: Unittest run: | -- 2.45.2 From aede99f3f2388d8346966d43e4358d0210efa9d1 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 12 Jan 2025 15:13:20 +0100 Subject: [PATCH 27/38] asdasd --- .gitea/workflows/helm.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/helm.yaml b/.gitea/workflows/helm.yaml index 6120b9f..1e4ebb8 100644 --- a/.gitea/workflows/helm.yaml +++ b/.gitea/workflows/helm.yaml @@ -43,6 +43,7 @@ jobs: run: | apk update apk add git npm + - uses: actions/checkout@v4.2.2 - name: Check if files were touched uses: dorny/paths-filter@v3.0.2 id: changes @@ -54,7 +55,6 @@ jobs: - name: Skip further steps, when condition is not met if: steps.filter.outputs.yaml == 'false' run: exit 0 - - uses: actions/checkout@v4.2.2 - name: Unittest run: | helm unittest --strict --file 'unittests/**/*.yaml' ./ \ No newline at end of file -- 2.45.2 From 5b2c089d6f70095280689e3a33a6cbd9c85644c2 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 12 Jan 2025 15:25:54 +0100 Subject: [PATCH 28/38] asdasd --- .gitea/workflows/helm.yaml | 22 ---------------------- .gitea/workflows/release.yaml | 32 ++++++++++++-------------------- 2 files changed, 12 insertions(+), 42 deletions(-) diff --git a/.gitea/workflows/helm.yaml b/.gitea/workflows/helm.yaml index 1e4ebb8..5e025b8 100644 --- a/.gitea/workflows/helm.yaml +++ b/.gitea/workflows/helm.yaml @@ -17,17 +17,6 @@ jobs: run: | apk update apk add git npm - - name: Check if files were touched - uses: dorny/paths-filter@v3.0.2 - id: changes - with: - filters: | - yaml: - - '**/*.yaml' - - '**/*.yml' - - name: Skip further steps, when condition is not met - if: steps.filter.outputs.yaml == 'false' - run: exit 0 - uses: actions/checkout@v4.2.2 - name: Lint helm files run: | @@ -44,17 +33,6 @@ jobs: apk update apk add git npm - uses: actions/checkout@v4.2.2 - - name: Check if files were touched - uses: dorny/paths-filter@v3.0.2 - id: changes - with: - filters: | - yaml: - - '**/*.yaml' - - '**/*.yml' - - name: Skip further steps, when condition is not met - if: steps.filter.outputs.yaml == 'false' - run: exit 0 - name: Unittest run: | helm unittest --strict --file 'unittests/**/*.yaml' ./ \ No newline at end of file diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 379e8c6..e3a3e04 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -11,20 +11,11 @@ env: jobs: generate-chart-publish: + container: + image: docker.io/volkerraschek/helm:3.16.1 runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: install tools - run: | - apt update --yes - apt install --yes curl ca-certificates curl gnupg - # helm - curl --location --output helm-v${HELM_VERSION}-linux-amd64.tar.gz https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz - tar --extract --gzip --file helm-v${HELM_VERSION}-linux-amd64.tar.gz - mv linux-amd64/helm /usr/local/bin/ - rm -rf linux-amd64 helm-v${HELM_VERSION}-linux-amd64.tar.gz - helm version - # - name: Import GPG key # id: import_gpg # uses: https://github.com/crazy-max/ghaction-import-gpg@v6 @@ -35,14 +26,15 @@ jobs: # Using helm gpg plugin as 'helm package --sign' has issues with gpg2: https://github.com/helm/helm/issues/2843 - name: package chart + env: + HELM_REPO_NAME: test + HELM_REPO_PASSWORD: ${{ secrets.HELM_REPO_PASSWORD }} + HELM_REPO_USERNAME: ${{ secrets.HELM_REPO_USERNAME }} run: | + REPOSITORY_NAME=$(echo ${GITHUB_REPOSITORY} | cut -d '/' -f 2) + PACKAGE_VERSION=${GITHUB_REF#refs/tags/v} + + helm repo add ${HELM_REPO_NAME} https://charts.cryptic.systems/${HELM_REPO_NAME} helm dependency build - helm package --version "${GITHUB_REF#refs/tags/v}" ./ - # mkdir gitea - # mv gitea*.tgz gitea/ - # curl -s -L -o gitea/index.yaml https://dl.gitea.com/charts/index.yaml - # helm repo index gitea/ --url https://dl.gitea.com/charts --merge gitea/index.yaml - # # push to dockerhub - # echo ${{ secrets.DOCKER_CHARTS_PASSWORD }} | helm registry login -u ${{ secrets.DOCKER_CHARTS_USERNAME }} registry-1.docker.io --password-stdin - # helm push gitea/gitea-${GITHUB_REF#refs/tags/v}.tgz oci://registry-1.docker.io/giteacharts - # helm registry logout registry-1.docker.io + helm package --version "${PACKAGE_VERSION}" ./ + helm cm-push ${REPOSITORY_NAME}-${PACKAGE_VERSION}.tgz ${HELM_REPO_NAME} -- 2.45.2 From d0626d7cd0c86b77661f1e27dbc12f02be5372b5 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 12 Jan 2025 15:30:14 +0100 Subject: [PATCH 29/38] sasdf --- .gitea/workflows/generate-readme.yaml | 2 ++ .gitea/workflows/helm.yaml | 4 +++- .gitea/workflows/markdown-linters.yaml | 2 ++ .gitea/workflows/release.yaml | 6 +----- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/generate-readme.yaml b/.gitea/workflows/generate-readme.yaml index c47a6a5..e58145b 100644 --- a/.gitea/workflows/generate-readme.yaml +++ b/.gitea/workflows/generate-readme.yaml @@ -6,6 +6,8 @@ on: types: [ "opened", "reopened", "synchronize" ] push: paths: [ "README.md", "values.yaml" ] + tags-ignore: + - '**' workflow_dispatch: {} jobs: diff --git a/.gitea/workflows/helm.yaml b/.gitea/workflows/helm.yaml index 5e025b8..e1b128c 100644 --- a/.gitea/workflows/helm.yaml +++ b/.gitea/workflows/helm.yaml @@ -3,7 +3,9 @@ name: Helm on: pull_request: types: [ "opened", "reopened", "synchronize" ] - push: {} + push: + tags-ignore: + - '**' workflow_dispatch: {} jobs: diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml index c259df2..9046bdc 100644 --- a/.gitea/workflows/markdown-linters.yaml +++ b/.gitea/workflows/markdown-linters.yaml @@ -6,6 +6,8 @@ on: types: [ "opened", "reopened", "synchronize" ] push: paths: [ "**/*.md" ] + tags-ignore: + - '**' workflow_dispatch: {} jobs: diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index e3a3e04..0d74f61 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -3,11 +3,7 @@ name: Release on: push: tags: - - "*" - -env: - # renovate: datasource=docker depName=alpine/helm - HELM_VERSION: "3.16.4" + - "**" jobs: generate-chart-publish: -- 2.45.2 From fad188e94a20eb105dc126c20b7d801a0daf38ba Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 12 Jan 2025 15:30:54 +0100 Subject: [PATCH 30/38] asd --- .gitea/workflows/release.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 0d74f61..0f6659c 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -11,6 +11,10 @@ jobs: image: docker.io/volkerraschek/helm:3.16.1 runs-on: ubuntu-latest steps: + - name: Install tooling + run: | + apk update + apk add git - uses: actions/checkout@v4 # - name: Import GPG key # id: import_gpg -- 2.45.2 From 86819552978d84b155d9a435a9f151e4bdad0680 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 12 Jan 2025 15:32:22 +0100 Subject: [PATCH 31/38] asdasd --- .gitea/workflows/release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 0f6659c..60774f5 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -6,7 +6,7 @@ on: - "**" jobs: - generate-chart-publish: + publish-chart: container: image: docker.io/volkerraschek/helm:3.16.1 runs-on: ubuntu-latest @@ -14,7 +14,7 @@ jobs: - name: Install tooling run: | apk update - apk add git + apk add git npm - uses: actions/checkout@v4 # - name: Import GPG key # id: import_gpg -- 2.45.2 From 0f7be7a83488ef5e1a0b58ccedf963a12b77ac8e Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 12 Jan 2025 15:39:25 +0100 Subject: [PATCH 32/38] asd --- .gitea/workflows/release.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 60774f5..896e96b 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -34,6 +34,9 @@ jobs: REPOSITORY_NAME=$(echo ${GITHUB_REPOSITORY} | cut -d '/' -f 2) PACKAGE_VERSION=${GITHUB_REF#refs/tags/v} + echo $REPOSITORY_NAME + echo $PACKAGE_VERSION + helm repo add ${HELM_REPO_NAME} https://charts.cryptic.systems/${HELM_REPO_NAME} helm dependency build helm package --version "${PACKAGE_VERSION}" ./ -- 2.45.2 From 734ec1f57676b664ba7befd2411cb622fb8cec4f Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 12 Jan 2025 15:44:13 +0100 Subject: [PATCH 33/38] asdsa --- .gitea/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 896e96b..ad4db86 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -32,7 +32,7 @@ jobs: HELM_REPO_USERNAME: ${{ secrets.HELM_REPO_USERNAME }} run: | REPOSITORY_NAME=$(echo ${GITHUB_REPOSITORY} | cut -d '/' -f 2) - PACKAGE_VERSION=${GITHUB_REF#refs/tags/v} + PACKAGE_VERSION=${GITHUB_REF#refs/tags} echo $REPOSITORY_NAME echo $PACKAGE_VERSION -- 2.45.2 From f5c88001d1b98bd59b1c039d6492355e02f7ef2c Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 12 Jan 2025 15:45:20 +0100 Subject: [PATCH 34/38] asdasd --- .gitea/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index ad4db86..3557696 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -32,7 +32,7 @@ jobs: HELM_REPO_USERNAME: ${{ secrets.HELM_REPO_USERNAME }} run: | REPOSITORY_NAME=$(echo ${GITHUB_REPOSITORY} | cut -d '/' -f 2) - PACKAGE_VERSION=${GITHUB_REF#refs/tags} + PACKAGE_VERSION=${GITHUB_REF#refs/tags/} echo $REPOSITORY_NAME echo $PACKAGE_VERSION -- 2.45.2 From 2c08135e8c854261f0c60c558a02081f233b9d11 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 12 Jan 2025 15:48:50 +0100 Subject: [PATCH 35/38] sddfsf --- .gitea/workflows/release.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 3557696..88f7239 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -30,6 +30,7 @@ jobs: HELM_REPO_NAME: test HELM_REPO_PASSWORD: ${{ secrets.HELM_REPO_PASSWORD }} HELM_REPO_USERNAME: ${{ secrets.HELM_REPO_USERNAME }} + HELM_SERVER_HOST: ${{ variables.HELM_SERVER_HOST }} run: | REPOSITORY_NAME=$(echo ${GITHUB_REPOSITORY} | cut -d '/' -f 2) PACKAGE_VERSION=${GITHUB_REF#refs/tags/} @@ -37,7 +38,7 @@ jobs: echo $REPOSITORY_NAME echo $PACKAGE_VERSION - helm repo add ${HELM_REPO_NAME} https://charts.cryptic.systems/${HELM_REPO_NAME} + helm repo add ${HELM_REPO_NAME} https://${HELM_SERVER_HOST}/${HELM_REPO_NAME} helm dependency build helm package --version "${PACKAGE_VERSION}" ./ helm cm-push ${REPOSITORY_NAME}-${PACKAGE_VERSION}.tgz ${HELM_REPO_NAME} -- 2.45.2 From c88061efa8d56e24f1031bd66af27bf5bc724814 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 12 Jan 2025 15:54:35 +0100 Subject: [PATCH 36/38] asdasd --- .gitea/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 88f7239..be8d48e 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -30,7 +30,7 @@ jobs: HELM_REPO_NAME: test HELM_REPO_PASSWORD: ${{ secrets.HELM_REPO_PASSWORD }} HELM_REPO_USERNAME: ${{ secrets.HELM_REPO_USERNAME }} - HELM_SERVER_HOST: ${{ variables.HELM_SERVER_HOST }} + HELM_SERVER_HOST: ${{ vars.HELM_SERVER_HOST }} run: | REPOSITORY_NAME=$(echo ${GITHUB_REPOSITORY} | cut -d '/' -f 2) PACKAGE_VERSION=${GITHUB_REF#refs/tags/} -- 2.45.2 From 657730eaf0cf4b861e50067aaf2f485ae686b041 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 12 Jan 2025 16:29:44 +0100 Subject: [PATCH 37/38] adasd --- .gitea/workflows/release.yaml | 39 ++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index be8d48e..51e72b1 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -16,29 +16,30 @@ jobs: apk update apk add git npm - uses: actions/checkout@v4 - # - name: Import GPG key - # id: import_gpg - # uses: https://github.com/crazy-max/ghaction-import-gpg@v6 - # with: - # gpg_private_key: ${{ secrets.GPGSIGN_KEY }} - # passphrase: ${{ secrets.GPGSIGN_PASSPHRASE }} - # fingerprint: CC64B1DB67ABBEECAB24B6455FC346329753F4B0 - - # Using helm gpg plugin as 'helm package --sign' has issues with gpg2: https://github.com/helm/helm/issues/2843 - - name: package chart + - name: Package chart env: - HELM_REPO_NAME: test - HELM_REPO_PASSWORD: ${{ secrets.HELM_REPO_PASSWORD }} - HELM_REPO_USERNAME: ${{ secrets.HELM_REPO_USERNAME }} - HELM_SERVER_HOST: ${{ vars.HELM_SERVER_HOST }} + HELM_REPO_NAME: upload + + CHARTMUSEUM_PASSWORD: ${{ secrets.CHARTMUSEUM_PASSWORD }} + CHARTMUSEUM_USERNAME: ${{ secrets.CHARTMUSEUM_USERNAME }} + CHARTMUSEUM_HOSTNAME: ${{ vars.CHARTMUSEUM_HOSTNAME }} + + GITEA_PACKAGE_REGISTRY_TOKEN: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} + GITEA_SERVER_URL: ${{ github.server_url }} run: | - REPOSITORY_NAME=$(echo ${GITHUB_REPOSITORY} | cut -d '/' -f 2) PACKAGE_VERSION=${GITHUB_REF#refs/tags/} + REPOSITORY_NAME=$(echo ${GITHUB_REPOSITORY} | cut -d '/' -f 2) + REPOSITORY_OWNER=$(echo ${GITHUB_REPOSITORY} | cut -d '/' -f 1) - echo $REPOSITORY_NAME - echo $PACKAGE_VERSION - - helm repo add ${HELM_REPO_NAME} https://${HELM_SERVER_HOST}/${HELM_REPO_NAME} helm dependency build helm package --version "${PACKAGE_VERSION}" ./ + + # chart-museum + helm repo add --username ${CHARTMUSEUM_USERNAME} --password ${CHARTMUSEUM_PASSWORD} ${HELM_REPO_NAME} https://${CHARTMUSEUM_HOSTNAME}/${HELM_REPO_NAME} helm cm-push ${REPOSITORY_NAME}-${PACKAGE_VERSION}.tgz ${HELM_REPO_NAME} + helm repo remove ${HELM_REPO_NAME} + + # gitea + helm repo add --username ${REPOSITORY_OWNER} --password ${GITEA_PACKAGE_REGISTRY_TOKEN} ${HELM_REPO_NAME} https://${GITEA_SERVER_URL}/api/packages/${REPOSITORY_OWNER}/helm + helm cm-push ${REPOSITORY_NAME}-${PACKAGE_VERSION}.tgz ${HELM_REPO_NAME} + helm repo remove ${HELM_REPO_NAME} \ No newline at end of file -- 2.45.2 From 011454ea1878d7258e04c3aa65e0f9806d03f44b Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 12 Jan 2025 16:32:54 +0100 Subject: [PATCH 38/38] asd --- .gitea/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 51e72b1..e3519ee 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -40,6 +40,6 @@ jobs: helm repo remove ${HELM_REPO_NAME} # gitea - helm repo add --username ${REPOSITORY_OWNER} --password ${GITEA_PACKAGE_REGISTRY_TOKEN} ${HELM_REPO_NAME} https://${GITEA_SERVER_URL}/api/packages/${REPOSITORY_OWNER}/helm + helm repo add --username ${REPOSITORY_OWNER} --password ${GITEA_PACKAGE_REGISTRY_TOKEN} ${HELM_REPO_NAME} ${GITEA_SERVER_URL}/api/packages/${REPOSITORY_OWNER}/helm helm cm-push ${REPOSITORY_NAME}-${PACKAGE_VERSION}.tgz ${HELM_REPO_NAME} helm repo remove ${HELM_REPO_NAME} \ No newline at end of file -- 2.45.2