mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 16:37:04 +02:00
fix: Fix CI location/inputs
This commit is contained in:
parent
9977db0f37
commit
8ed61737dc
2 changed files with 22 additions and 20 deletions
23
.github/workflows/charts-release-ghpages.yaml
vendored
23
.github/workflows/charts-release-ghpages.yaml
vendored
|
@ -1,15 +1,8 @@
|
||||||
name: "Charts: Release to GitHub pages"
|
name: "Charts: Release to GitHub pages"
|
||||||
|
|
||||||
concurrency: helm-release
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
token:
|
|
||||||
required: true
|
|
||||||
default: "${{ github.token }}"
|
|
||||||
description: "The Github API token to use"
|
|
||||||
type: string
|
|
||||||
charts:
|
charts:
|
||||||
description: >
|
description: >
|
||||||
Json encoded list of Helm charts to release.
|
Json encoded list of Helm charts to release.
|
||||||
|
@ -17,6 +10,11 @@ on:
|
||||||
default: "[]"
|
default: "[]"
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
secrets:
|
||||||
|
BJWS_APP_ID:
|
||||||
|
required: true
|
||||||
|
BJWS_APP_PRIVATE_KEY:
|
||||||
|
required: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
HELM_VERSION: 3.9.2
|
HELM_VERSION: 3.9.2
|
||||||
|
@ -26,17 +24,24 @@ jobs:
|
||||||
name: Release charts
|
name: Release charts
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
|
- name: Get k8s-at-home token
|
||||||
|
id: get-app-token
|
||||||
|
uses: getsentry/action-github-app-token@v1
|
||||||
|
with:
|
||||||
|
app_id: ${{ secrets.BJWS_APP_ID }}
|
||||||
|
private_key: ${{ secrets.BJWS_APP_PRIVATE_KEY }}
|
||||||
|
|
||||||
- name: Checkout charts branch
|
- name: Checkout charts branch
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ inputs.token }}
|
token: ${{ steps.get-app-token.outputs.token }}
|
||||||
path: "src"
|
path: "src"
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Checkout gh-pages branch
|
- name: Checkout gh-pages branch
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ inputs.token }}
|
token: ${{ steps.get-app-token.outputs.token }}
|
||||||
path: "dest"
|
path: "dest"
|
||||||
ref: "gh-pages"
|
ref: "gh-pages"
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
19
.github/workflows/charts-release.yaml
vendored
19
.github/workflows/charts-release.yaml
vendored
|
@ -11,6 +11,7 @@ on:
|
||||||
Defaults to releasing everything.
|
Defaults to releasing everything.
|
||||||
default: ""
|
default: ""
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
@ -25,22 +26,18 @@ jobs:
|
||||||
name: Prepare data required for release
|
name: Prepare data required for release
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
outputs:
|
outputs:
|
||||||
token: ${{ steps.get-app-token.outputs.token }}
|
|
||||||
charts-to-release: ${{ steps.collect-charts.outputs.charts }}
|
charts-to-release: ${{ steps.collect-charts.outputs.charts }}
|
||||||
steps:
|
steps:
|
||||||
- name: Get k8s-at-home token
|
- name: Checkout
|
||||||
id: get-app-token
|
uses: actions/checkout@v3
|
||||||
uses: getsentry/action-github-app-token@v1
|
|
||||||
with:
|
with:
|
||||||
app_id: ${{ secrets.BJWS_APP_ID }}
|
fetch-depth: 0
|
||||||
private_key: ${{ secrets.BJWS_APP_PRIVATE_KEY }}
|
|
||||||
|
|
||||||
- name: Collect charts to release
|
- name: Collect charts to release
|
||||||
uses: ./src/.github/actions/collect-charts
|
uses: ./.github/actions/collect-charts
|
||||||
id: collect-charts
|
id: collect-charts
|
||||||
with:
|
with:
|
||||||
token: ${{ steps.get-app-token.outputs.token }}
|
repoConfigFile: ./.ci/repo-config.yaml
|
||||||
repoConfigFile: ./src/.ci/repo-config.yaml
|
|
||||||
overrideCharts: "[${{ inputs.charts }}]"
|
overrideCharts: "[${{ inputs.charts }}]"
|
||||||
|
|
||||||
release-github-pages:
|
release-github-pages:
|
||||||
|
@ -49,5 +46,5 @@ jobs:
|
||||||
needs:
|
needs:
|
||||||
- prepare
|
- prepare
|
||||||
with:
|
with:
|
||||||
token: ${{ needs.prepare.outputs.token }}
|
charts: "${{ needs.prepare.outputs.charts-to-release }}"
|
||||||
charts: "[${{ needs.prepare.outputs.charts-to-release }}]"
|
secrets: inherit
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue