Skip to content

Commit

Permalink
Move unified chart - establish release proccess attempt(#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
mqxter authored Sep 4, 2024
1 parent a318dfb commit 00b431c
Show file tree
Hide file tree
Showing 35 changed files with 74 additions and 4 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/release-chart-version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
name: release chart single version
permissions: write-all
on:
workflow_call:
inputs:
environment:
required: true
type: string
charts-dir:
required: false
type: string
default: common
chart-name:
required: false
type: string
default: unified-chart

jobs:
release-chart:
permissions:
contents: write
environment: ${{ inputs.environment }}
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Fetch history
run: git fetch --prune --unshallow
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Set up Helm
uses: azure/setup-helm@v3
- name: package chart
run: |
cd ${{ inputs.charts-dir }}/${{ inputs.chart-name }}
version=$(cat Chart.yaml | yq e '.version')
helm package . --version $version-${{ inputs.environment }}
- name: Run chart-releaser
uses: helm/[email protected]
with:
charts_dir: common
skip_packaging: true
env:
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17 changes: 17 additions & 0 deletions .github/workflows/release-unified-chart-flow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: release unified-chart flow

on:
push:
branches:
- test-unified-chart-release

jobs:
release-stg:
uses: frontegg/helm-charts/.github/workflows/release-chart-version.yaml@test-unified-chart-release
with:
environment: stg
release-ca:
uses: frontegg/helm-charts/.github/workflows/release-chart-version.yaml@test-unified-chart-release
with:
environment: ca
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
name: helm template check

on:
push:
paths:
- charts/unified-chart/**
- common/unified-chart/**

jobs:
helm-template-check:
Expand All @@ -18,7 +19,7 @@ jobs:
TEAM: someteam
APP_VERSION: production-global-20240721.084900-a5186d5
TEST_FILE: test.values.yaml
CHART_PATH: charts/unified-chart
CHART_PATH: common/unified-chart
run: |
cd charts/unified-chart
cd common/unified-chart
helm template . --name-template=$NAME_TEMPLATE --set name=$NAME --set team=$TEAM --set appVersion=$APP_VERSION --values $TEST_FILE --debug
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ name: unified-chart
description: Frontegg Unified Chart
type: application

version: 4.0.1-stg
version: 4.0.1
# version: 4.0.1-stg
# version: 4.0.1-ca
# version: 4.0.1-au
# version: 4.0.1-us
# version: 4.0.1-eu

maintainers:
- name: "platform"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added common/unified-chart/unified-chart-4.0.1-stg.tgz
Binary file not shown.
File renamed without changes.

0 comments on commit 00b431c

Please sign in to comment.