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)