From 4be34c1374cfe228d62958c78318ab3f94d1e16c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20ZGRZENDEK?= Date: Mon, 2 Dec 2024 18:00:13 +0100 Subject: [PATCH] Updated chart workflow release management --- .github/workflows/chart-ci.yaml | 23 ++++++++++++++++++--- charts/redcap/Chart.yaml | 36 ++++++++++++++++----------------- 2 files changed, 38 insertions(+), 21 deletions(-) diff --git a/.github/workflows/chart-ci.yaml b/.github/workflows/chart-ci.yaml index 30df643..67334ee 100644 --- a/.github/workflows/chart-ci.yaml +++ b/.github/workflows/chart-ci.yaml @@ -4,8 +4,7 @@ on: push: branches: - "dev" - tags: - - "v*.*.*" + - "main" jobs: lint-test: @@ -147,10 +146,28 @@ jobs: - name: Add Helm repositories run: | helm repo add bitnami https://charts.bitnami.com/bitnami + + ### DEV specific steps ### + - name: Add release suffix - DEV + if: github.ref == 'refs/heads/dev' + run: | + yq -i '.version |= . + "-dev"' charts/redcap/Chart.yaml - - name: Run chart-releaser + - name: Run chart-releaser - DEV + if: github.ref == 'refs/heads/dev' + uses: helm/chart-releaser-action@v1.6.0 + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + with: + skip_existing: true + mark_as_latest: false + + ### PROD specific steps ### + - name: Run chart-releaser - MAIN + if: github.ref == 'refs/heads/main' uses: helm/chart-releaser-action@v1.6.0 env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: skip_existing: true + mark_as_latest: true \ No newline at end of file diff --git a/charts/redcap/Chart.yaml b/charts/redcap/Chart.yaml index 11b2439..487dac7 100644 --- a/charts/redcap/Chart.yaml +++ b/charts/redcap/Chart.yaml @@ -1,30 +1,30 @@ apiVersion: v2 name: redcap -version: 1.4.0-dev.1 +version: 1.4.0 appVersion: 14.5.25 kubeVersion: '>= 1.24.0-0' description: A Helm chart to deploy REDCap on a Kubernetes cluster. type: application keywords: -- redcap -- eCRF -- research -- clinical + - redcap + - eCRF + - research + - clinical home: https://www.project-redcap.org/ sources: -- https://github.com/aphp/redcap-helmchart + - https://github.com/aphp/redcap-helmchart dependencies: -- condition: mysql.enabled - name: mysql - repository: https://charts.bitnami.com/bitnami - version: 12.0.1 -- condition: audit.enabled - name: logstash - alias: audit - repository: https://charts.bitnami.com/bitnami - version: 6.3.9 + - condition: mysql.enabled + name: mysql + repository: https://charts.bitnami.com/bitnami + version: 12.0.1 + - condition: audit.enabled + name: logstash + alias: audit + repository: https://charts.bitnami.com/bitnami + version: 6.3.9 maintainers: -- name: kzgrzendek - email: kevin.zgrzendek@gmail.com - url: https://github.com/kzgrzendek + - name: kzgrzendek + email: kevin.zgrzendek@gmail.com + url: https://github.com/kzgrzendek icon: https://www.lib.washington.edu/dataservices/images/REDCaplogo.jpg