From 570b6a69e4ecc82616d50be75451d59c437f438e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Sat, 9 Nov 2024 09:11:41 +0100 Subject: [PATCH] Test publishing helm chart --- .github/ghci.yaml | 4 ++++ .github/publish.yaml | 3 +++ .github/workflows/main.yaml | 4 +++- tests/Chart.yaml | 5 +++++ Dockerfile => tests/Dockerfile | 0 5 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .github/ghci.yaml create mode 100644 tests/Chart.yaml rename Dockerfile => tests/Dockerfile (100%) diff --git a/.github/ghci.yaml b/.github/ghci.yaml new file mode 100644 index 0000000..6259009 --- /dev/null +++ b/.github/ghci.yaml @@ -0,0 +1,4 @@ +# yaml-language-server: $schema=https://geoservices-int.camptocamp.com/github/schema.json + +changelog: + create-release: false diff --git a/.github/publish.yaml b/.github/publish.yaml index 7a800b9..6c35c2e 100644 --- a/.github/publish.yaml +++ b/.github/publish.yaml @@ -17,3 +17,6 @@ docker: - version_tag - version_branch - rebuild +helm: + folders: + - tests diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 2e88f0f..0f83449 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -14,6 +14,8 @@ permissions: packages: write # To publish Python packages id-token: write + # To publish Helm charts + contents: write env: HAS_SECRETS: ${{ secrets.HAS_SECRETS }} @@ -83,7 +85,7 @@ jobs: - name: Prospector run: poetry run prospector --die-on-tool-error --output-format=pylint - - run: docker build --tag camptocamp/tag-publish . + - run: docker build --tag camptocamp/tag-publish tests - name: Publish run: poetry run tag-publish diff --git a/tests/Chart.yaml b/tests/Chart.yaml new file mode 100644 index 0000000..4dc9b98 --- /dev/null +++ b/tests/Chart.yaml @@ -0,0 +1,5 @@ +apiVersion: v2 +appVersion: '1.0' +description: A Helm chart for Kubernetes +name: test +version: 1.0.0 diff --git a/Dockerfile b/tests/Dockerfile similarity index 100% rename from Dockerfile rename to tests/Dockerfile