Skip to content

Commit

Permalink
attempting to solve semver with lexicographical-priority
Browse files Browse the repository at this point in the history
  • Loading branch information
mqxter committed Sep 5, 2024
1 parent e84a858 commit 34973d0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release-chart-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
required: false
type: string
default: unified-chart
lexicographical-priority:
required: true
type: number

jobs:
release-chart:
Expand All @@ -37,9 +40,9 @@ jobs:
run: |
cd ${{ inputs.charts-dir }}/${{ inputs.chart-name }}
version=$(cat Chart.yaml | yq e '.version')
helm package . --version $version-${{ inputs.environment }}
helm package . --version $version-${{ inputs.lexicographical-priority }}${{ inputs.environment }}
mkdir .cr-release-packages
cp ${{ inputs.chart-name }}-$version-${{ inputs.environment }}.tgz .cr-release-packages/
cp ${{ inputs.chart-name }}-$version-${{ inputs.lexicographical-priority }}${{ inputs.environment }}.tgz .cr-release-packages/
- name: Run chart-releaser
uses: helm/[email protected]
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release-unified-chart-flow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,28 @@ jobs:
uses: frontegg/helm-charts/.github/workflows/release-chart-version.yaml@master
with:
environment: stg
lexicographical-priority: 1
release-ca:
needs: release-stg
uses: frontegg/helm-charts/.github/workflows/release-chart-version.yaml@master
with:
environment: ca
lexicographical-priority: 2
release-au:
needs: release-ca
uses: frontegg/helm-charts/.github/workflows/release-chart-version.yaml@master
with:
environment: au
lexicographical-priority: 3
release-us:
needs: release-au
uses: frontegg/helm-charts/.github/workflows/release-chart-version.yaml@master
with:
environment: us
lexicographical-priority: 4
release-eu:
needs: release-us
uses: frontegg/helm-charts/.github/workflows/release-chart-version.yaml@master
with:
environment: eu
lexicographical-priority: 5
5 changes: 0 additions & 5 deletions common/unified-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ description: Frontegg Unified Chart
type: application

version: 4.0.9
# 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

0 comments on commit 34973d0

Please sign in to comment.