mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 00:47:04 +02:00
feat(common): Release v2.0.3 (#203)
Co-authored-by: JJGadgets <git@jjgadgets.tech> Co-authored-by: bjw-s-bot[bot] <87358111+bjw-s-bot[bot]@users.noreply.github.com>
This commit is contained in:
parent
f729651dbe
commit
ed015ee74b
12 changed files with 245 additions and 46 deletions
|
@ -75,7 +75,7 @@ jobs:
|
|||
helm repo index . --url https://bjw-s.github.io/helm-charts/
|
||||
|
||||
- name: Commit changes
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
id: auto-commit
|
||||
with:
|
||||
repository: dest
|
||||
|
|
5
.github/workflows/charts-release-oci.yaml
vendored
5
.github/workflows/charts-release-oci.yaml
vendored
|
@ -10,11 +10,6 @@ on:
|
|||
default: "[]"
|
||||
required: false
|
||||
type: string
|
||||
secrets:
|
||||
BJWS_APP_ID:
|
||||
required: true
|
||||
BJWS_APP_PRIVATE_KEY:
|
||||
required: true
|
||||
|
||||
env:
|
||||
HELM_VERSION: 3.11.2
|
||||
|
|
25
.github/workflows/charts-release.yaml
vendored
25
.github/workflows/charts-release.yaml
vendored
|
@ -26,8 +26,8 @@ jobs:
|
|||
name: Prepare data required for release
|
||||
runs-on: ubuntu-22.04
|
||||
outputs:
|
||||
libraryChartsToRelease: ${{ steps.collect-charts.outputs.chartsLibrary }}
|
||||
applicationChartsToRelease: ${{ steps.collect-charts.outputs.chartsApplication }}
|
||||
libraryChartsToRelease: ${{ steps.collect-charts.outputs.chartsLibraryToRelease }}
|
||||
applicationChartsToRelease: ${{ steps.collect-charts.outputs.chartsApplicationToRelease }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
|
||||
|
@ -40,6 +40,7 @@ jobs:
|
|||
with:
|
||||
repoConfigFile: ./.ci/repo-config.yaml
|
||||
overrideCharts: "[${{ inputs.charts }}]"
|
||||
requireHeadAheadOfBase: false
|
||||
|
||||
release-library-charts:
|
||||
name: Release Library charts to GitHub pages
|
||||
|
@ -50,6 +51,16 @@ jobs:
|
|||
charts: "${{ needs.prepare.outputs.libraryChartsToRelease }}"
|
||||
secrets: inherit
|
||||
|
||||
tag-library-charts:
|
||||
name: Create git tags for library charts
|
||||
uses: ./.github/workflows/tag-charts.yaml
|
||||
needs:
|
||||
- prepare
|
||||
- release-library-charts
|
||||
with:
|
||||
charts: "${{ needs.prepare.outputs.libraryChartsToRelease }}"
|
||||
secrets: inherit
|
||||
|
||||
release-application-charts:
|
||||
name: Release Application charts to GitHub pages
|
||||
uses: ./.github/workflows/charts-release-ghpages.yaml
|
||||
|
@ -60,6 +71,16 @@ jobs:
|
|||
charts: "${{ needs.prepare.outputs.applicationChartsToRelease }}"
|
||||
secrets: inherit
|
||||
|
||||
tag-application-charts:
|
||||
name: Create git tags for application charts
|
||||
uses: ./.github/workflows/tag-charts.yaml
|
||||
needs:
|
||||
- prepare
|
||||
- release-application-charts
|
||||
with:
|
||||
charts: "${{ needs.prepare.outputs.applicationChartsToRelease }}"
|
||||
secrets: inherit
|
||||
|
||||
release-github-oci:
|
||||
name: Release Application charts to GitHub Container Registry
|
||||
uses: ./.github/workflows/charts-release-oci.yaml
|
||||
|
|
54
.github/workflows/tag-charts.yaml
vendored
Normal file
54
.github/workflows/tag-charts.yaml
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
name: "Charts: Create git tag"
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
charts:
|
||||
description: >
|
||||
Json encoded list of Helm charts to release.
|
||||
Defaults to releasing everything.
|
||||
default: "[]"
|
||||
required: false
|
||||
type: string
|
||||
secrets:
|
||||
BJWS_APP_ID:
|
||||
required: true
|
||||
BJWS_APP_PRIVATE_KEY:
|
||||
required: true
|
||||
|
||||
env:
|
||||
CHARTS_SRC_DIR: "charts"
|
||||
|
||||
jobs:
|
||||
tag-charts:
|
||||
name: Tag charts
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Get GitHub API token
|
||||
id: get-app-token
|
||||
uses: getsentry/action-github-app-token@v2
|
||||
with:
|
||||
app_id: ${{ secrets.BJWS_APP_ID }}
|
||||
private_key: ${{ secrets.BJWS_APP_PRIVATE_KEY }}
|
||||
|
||||
- name: Checkout chart sources
|
||||
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
|
||||
with:
|
||||
token: ${{ steps.get-app-token.outputs.token }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Create git tag for charts
|
||||
shell: bash
|
||||
run: |
|
||||
CHARTS=( $(yq --null-input e '${{ inputs.charts }}[]' ) )
|
||||
|
||||
for CHART in "${CHARTS[@]}" ; do
|
||||
mapfile -t CHART_PATH_PARTS < <(echo "$CHART" | tr '/' '\n')
|
||||
CHART_TYPE=${CHART_PATH_PARTS[0]}
|
||||
CHART_NAME=${CHART_PATH_PARTS[1]}
|
||||
CHART_VERSION=$(yq e '.version' ${{ env.CHARTS_SRC_DIR }}/${CHART}/Chart.yaml)
|
||||
|
||||
git tag --force "${CHART_NAME}-${CHART_VERSION}"
|
||||
done
|
||||
|
||||
git push --tags --force
|
Loading…
Add table
Add a link
Reference in a new issue