use workflow

This commit is contained in:
2025-03-14 15:38:00 -05:00
parent 3f6faacaa1
commit a9286227f7
3 changed files with 15 additions and 6 deletions

View File

@@ -9,6 +9,9 @@ on:
workflow_dispatch: workflow_dispatch:
env:
WORKFLOW_DIR: "charts/cloudflared"
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -24,7 +27,7 @@ jobs:
- name: Package Helm Chart - name: Package Helm Chart
run: | run: |
cd charts/cloudflared cd $WORKFLOW_DIR
helm dependency build helm dependency build
echo "PACKAGE_PATH=$(helm package . | awk '{print $NF}')" >> $GITEA_ENV echo "PACKAGE_PATH=$(helm package . | awk '{print $NF}')" >> $GITEA_ENV
@@ -41,7 +44,7 @@ jobs:
- name: Extract Chart Metadata - name: Extract Chart Metadata
run: | run: |
cd charts/generic-device-plugin cd $WORKFLOW_DIR
CHART_VERSION=$(yq '.version' Chart.yaml) CHART_VERSION=$(yq '.version' Chart.yaml)
CHART_NAME=$(yq '.name' Chart.yaml) CHART_NAME=$(yq '.name' Chart.yaml)

View File

@@ -9,6 +9,9 @@ on:
workflow_dispatch: workflow_dispatch:
env:
WORKFLOW_DIR: "charts/generic-device-plugin"
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -24,7 +27,7 @@ jobs:
- name: Package Helm Chart - name: Package Helm Chart
run: | run: |
cd charts/generic-device-plugin cd $WORKFLOW_DIR
helm dependency build helm dependency build
echo "PACKAGE_PATH=$(helm package . | awk '{print $NF}')" >> $GITEA_ENV echo "PACKAGE_PATH=$(helm package . | awk '{print $NF}')" >> $GITEA_ENV
@@ -41,7 +44,7 @@ jobs:
- name: Extract Chart Metadata - name: Extract Chart Metadata
run: | run: |
cd charts/generic-device-plugin cd $WORKFLOW_DIR
CHART_VERSION=$(yq '.version' Chart.yaml) CHART_VERSION=$(yq '.version' Chart.yaml)
CHART_NAME=$(yq '.name' Chart.yaml) CHART_NAME=$(yq '.name' Chart.yaml)

View File

@@ -9,6 +9,9 @@ on:
workflow_dispatch: workflow_dispatch:
env:
WORKFLOW_DIR: "charts/postgres-cluster"
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -24,7 +27,7 @@ jobs:
- name: Package Helm Chart - name: Package Helm Chart
run: | run: |
cd charts/postgres-cluster cd $WORKFLOW_DIR
helm dependency build helm dependency build
echo "PACKAGE_PATH=$(helm package . | awk '{print $NF}')" >> $GITEA_ENV echo "PACKAGE_PATH=$(helm package . | awk '{print $NF}')" >> $GITEA_ENV
@@ -41,7 +44,7 @@ jobs:
- name: Extract Chart Metadata - name: Extract Chart Metadata
run: | run: |
cd charts/generic-device-plugin cd $WORKFLOW_DIR
CHART_VERSION=$(yq '.version' Chart.yaml) CHART_VERSION=$(yq '.version' Chart.yaml)
CHART_NAME=$(yq '.name' Chart.yaml) CHART_NAME=$(yq '.name' Chart.yaml)