From 5616f00d524f8d08523eccc14556c609a9d95309 Mon Sep 17 00:00:00 2001 From: Moti Asayag Date: Sun, 31 Mar 2024 16:22:17 +0300 Subject: [PATCH] Use single release workflow Signed-off-by: Moti Asayag --- .github/workflows/greeting.yaml | 18 ------------------ .github/workflows/move2kube.yaml | 18 ------------------ .github/workflows/mta.yaml | 18 ------------------ .github/workflows/release.yaml | 22 ++++++++-------------- .github/workflows/workflows.yaml | 18 ------------------ 5 files changed, 8 insertions(+), 86 deletions(-) delete mode 100644 .github/workflows/greeting.yaml delete mode 100644 .github/workflows/move2kube.yaml delete mode 100644 .github/workflows/mta.yaml delete mode 100644 .github/workflows/workflows.yaml diff --git a/.github/workflows/greeting.yaml b/.github/workflows/greeting.yaml deleted file mode 100644 index e7c9cb55..00000000 --- a/.github/workflows/greeting.yaml +++ /dev/null @@ -1,18 +0,0 @@ -name: Release Helm chart for greeting workflow - -on: - workflow_dispatch: - push: - branches: [ "main" ] - paths: - - 'charts/greeting/**' - - '.github/workflows/greeting.yaml' - - '.github/workflows/release.yaml' - -jobs: - release-greeting: - uses: ./.github/workflows/release.yaml - with: - workflow_id: greeting - secrets: inherit - diff --git a/.github/workflows/move2kube.yaml b/.github/workflows/move2kube.yaml deleted file mode 100644 index 64a8ef3b..00000000 --- a/.github/workflows/move2kube.yaml +++ /dev/null @@ -1,18 +0,0 @@ -name: Release Helm chart for move2kube workflow - -on: - workflow_dispatch: - push: - branches: [ "main" ] - paths: - - 'charts/move2kube/**' - - '.github/workflows/move2kube.yaml' - - '.github/workflows/release.yaml' - -jobs: - release-move2kube: - uses: ./.github/workflows/release.yaml - with: - workflow_id: move2kube - secrets: inherit - diff --git a/.github/workflows/mta.yaml b/.github/workflows/mta.yaml deleted file mode 100644 index f949f303..00000000 --- a/.github/workflows/mta.yaml +++ /dev/null @@ -1,18 +0,0 @@ -name: Release Helm chart for mta workflow - -on: - workflow_dispatch: - push: - branches: [ "main" ] - paths: - - 'charts/mta/**' - - '.github/workflows/mta.yaml' - - '.github/workflows/release.yaml' - -jobs: - release-mta: - uses: ./.github/workflows/release.yaml - with: - workflow_id: mta - secrets: inherit - diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index fa7ead2d..cd58a1b4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,11 +1,12 @@ -name: Reusable Workflow to release Helm Charts +name: Release Workflows Charts on: - workflow_call: - inputs: - workflow_id: - required: true - type: string + workflow_dispatch: + push: + branches: + - main + paths: + - "charts/**" jobs: release: @@ -21,14 +22,7 @@ jobs: git config user.name "$GITHUB_ACTOR" git config user.email "$GITHUB_ACTOR@users.noreply.github.com" - - name: Install Helm - uses: azure/setup-helm@v3 - - - name: Release ${{ inputs.workflow_id }} chart + - name: Run chart-releaser uses: helm/chart-releaser-action@v1.6.0 - with: - skip_existing: true - charts_dir: charts/${{ inputs.workflow_id }}/charts env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - \ No newline at end of file diff --git a/.github/workflows/workflows.yaml b/.github/workflows/workflows.yaml deleted file mode 100644 index e81b8fb3..00000000 --- a/.github/workflows/workflows.yaml +++ /dev/null @@ -1,18 +0,0 @@ -name: Release Helm chart for Workflows Umbrella Chart - -on: - workflow_dispatch: - push: - branches: [ "main" ] - paths: - - 'charts/workflows/**' - - '.github/workflows/workflows.yaml' - - '.github/workflows/release.yaml' - -jobs: - release-workflows: - uses: ./.github/workflows/release.yaml - with: - workflow_id: workflows - secrets: inherit -