From a9286227f778e07f22b01e7b228e49a34b9df38c Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Fri, 14 Mar 2025 15:38:00 -0500 Subject: [PATCH] use workflow --- .gitea/workflows/release-charts-cloudflared.yml | 7 +++++-- .gitea/workflows/release-charts-generic-device-plugin.yml | 7 +++++-- .gitea/workflows/release-charts-postgres-cluster.yml | 7 +++++-- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/release-charts-cloudflared.yml b/.gitea/workflows/release-charts-cloudflared.yml index 9bc15da..7f7088a 100644 --- a/.gitea/workflows/release-charts-cloudflared.yml +++ b/.gitea/workflows/release-charts-cloudflared.yml @@ -9,6 +9,9 @@ on: workflow_dispatch: +env: + WORKFLOW_DIR: "charts/cloudflared" + jobs: release: runs-on: ubuntu-latest @@ -24,7 +27,7 @@ jobs: - name: Package Helm Chart run: | - cd charts/cloudflared + cd $WORKFLOW_DIR helm dependency build echo "PACKAGE_PATH=$(helm package . | awk '{print $NF}')" >> $GITEA_ENV @@ -41,7 +44,7 @@ jobs: - name: Extract Chart Metadata run: | - cd charts/generic-device-plugin + cd $WORKFLOW_DIR CHART_VERSION=$(yq '.version' Chart.yaml) CHART_NAME=$(yq '.name' Chart.yaml) diff --git a/.gitea/workflows/release-charts-generic-device-plugin.yml b/.gitea/workflows/release-charts-generic-device-plugin.yml index f1ddd0c..f740e4e 100644 --- a/.gitea/workflows/release-charts-generic-device-plugin.yml +++ b/.gitea/workflows/release-charts-generic-device-plugin.yml @@ -9,6 +9,9 @@ on: workflow_dispatch: +env: + WORKFLOW_DIR: "charts/generic-device-plugin" + jobs: release: runs-on: ubuntu-latest @@ -24,7 +27,7 @@ jobs: - name: Package Helm Chart run: | - cd charts/generic-device-plugin + cd $WORKFLOW_DIR helm dependency build echo "PACKAGE_PATH=$(helm package . | awk '{print $NF}')" >> $GITEA_ENV @@ -41,7 +44,7 @@ jobs: - name: Extract Chart Metadata run: | - cd charts/generic-device-plugin + cd $WORKFLOW_DIR CHART_VERSION=$(yq '.version' Chart.yaml) CHART_NAME=$(yq '.name' Chart.yaml) diff --git a/.gitea/workflows/release-charts-postgres-cluster.yml b/.gitea/workflows/release-charts-postgres-cluster.yml index beb0afd..6b2a4d8 100644 --- a/.gitea/workflows/release-charts-postgres-cluster.yml +++ b/.gitea/workflows/release-charts-postgres-cluster.yml @@ -9,6 +9,9 @@ on: workflow_dispatch: +env: + WORKFLOW_DIR: "charts/postgres-cluster" + jobs: release: runs-on: ubuntu-latest @@ -24,7 +27,7 @@ jobs: - name: Package Helm Chart run: | - cd charts/postgres-cluster + cd $WORKFLOW_DIR helm dependency build echo "PACKAGE_PATH=$(helm package . | awk '{print $NF}')" >> $GITEA_ENV @@ -41,7 +44,7 @@ jobs: - name: Extract Chart Metadata run: | - cd charts/generic-device-plugin + cd $WORKFLOW_DIR CHART_VERSION=$(yq '.version' Chart.yaml) CHART_NAME=$(yq '.name' Chart.yaml)