Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
feat: Use Helm build action (#82)
Browse files Browse the repository at this point in the history
Signed-off-by: TannerGabriel <gabrieltanner.code@gmail.com>
  • Loading branch information
TannerGabriel authored Jul 6, 2022
1 parent b34537f commit 37db9b7
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 55 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,35 @@ jobs:
message: |
The following Docker Images have been built:
${{ fromJSON(steps.docker_build.outputs.BUILD_METADATA)['image.name'] }}
helm_chart_build:
needs: [prepare_ci_run, docker_build]
name: Build Helm Charts
runs-on: ubuntu-20.04
env:
VERSION: ${{ needs.prepare_ci_run.outputs.VERSION }}
DATETIME: ${{ needs.prepare_ci_run.outputs.DATETIME }}
steps:
- name: Checkout Code
uses: actions/checkout@v3.0.2

- name: Load CI Environment from .ci_env
id: load_ci_env
uses: c-py/action-dotenv-to-setenv@v3
with:
env-file: .ci_env

- name: Build Helm Charts
id: build_helm_charts
uses: keptn/gh-automation/.github/actions/build-helm-charts@v1.6.0
with:
VERSION: ${{ env.VERSION }}
APP_VERSION: ${{ env.VERSION }}.${{ env.DATETIME }}
CHART_NAME: ${{ env.IMAGE }}

- name: Upload Helm Chart as an artifact
id: upload_helm_chart
uses: actions/upload-artifact@v3
with:
name: helm-charts
path: installer/*.tgz
6 changes: 5 additions & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ jobs:

- name: Build Helm Charts
id: build_helm_charts
run: ./gh-actions-scripts/build_helm_chart.sh "${VERSION}" "${VERSION}" "${IMAGE}"
uses: keptn/gh-automation/.github/actions/build-helm-charts@v1.6.0
with:
VERSION: ${{ env.VERSION }}
APP_VERSION: ${{ env.VERSION }}
CHART_NAME: ${{ env.IMAGE }}

- name: Upload Helm Chart as release asset
env:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ jobs:

- name: Build Helm Charts
id: build_helm_charts
run: ./gh-actions-scripts/build_helm_chart.sh "${VERSION}" "${VERSION}" "${IMAGE}"
uses: keptn/gh-automation/.github/actions/build-helm-charts@v1.6.0
with:
VERSION: ${{ env.VERSION }}
APP_VERSION: ${{ env.VERSION }}
CHART_NAME: ${{ env.IMAGE }}

- name: Upload Helm Chart as release asset
env:
Expand Down
53 changes: 0 additions & 53 deletions gh-actions-scripts/build_helm_chart.sh

This file was deleted.

0 comments on commit 37db9b7

Please sign in to comment.