Compare commits

...

2 Commits

Author SHA1 Message Date
a9286227f7 use workflow 2025-03-14 15:38:00 -05:00
3f6faacaa1 change dir 2025-03-14 15:34:09 -05:00
3 changed files with 15 additions and 3 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,6 +44,7 @@ jobs:
- name: Extract Chart Metadata - name: Extract Chart Metadata
run: | run: |
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,6 +44,7 @@ jobs:
- name: Extract Chart Metadata - name: Extract Chart Metadata
run: | run: |
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,6 +44,7 @@ jobs:
- name: Extract Chart Metadata - name: Extract Chart Metadata
run: | run: |
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)