-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (46 loc) · 1.54 KB
/
build-push-helm-chart.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: build-push-helm-chart
on:
workflow_call:
secrets:
DV_CHARTMUSEUM_USER:
required: true
DV_CHARTMUSEUM_PASSWORD:
required: true
inputs:
current_directory:
description: "Current directory for building the helm chart"
required: true
type: string
chart_repository_url:
description: "Helm chart repository URL where to push the chart"
required: false
type: string
permissions:
id-token: write
contents: read
env:
WORKFLOW_BRANCH: "main"
concurrency:
group: '${{ github.workflow }}-${{ github.ref || github.head_ref }}'
cancel-in-progress: true
jobs:
build:
concurrency:
group: "${{ github.workflow }}-${{ github.ref || github.head_ref }}-${{ inputs.chart_repository_url }}"
cancel-in-progress: true
runs-on: ubuntu-22.04
steps:
# checkout specific source repository
- uses: actions/checkout@v3
# checkout this workflow repository to get actions
- uses: actions/checkout@v3
with:
repository: datavisyn/github-workflows
ref: ${{ env.WORKFLOW_BRANCH }}
path: ./tmp/github-workflows
- uses: ./tmp/github-workflows/.github/actions/build-push-helm-chart
with:
chart_repository_url: ${{ inputs.chart_repository_url || vars.DV_CHARTMUSEUM_URL }}
chart_repository_username: ${{ secrets.DV_CHARTMUSEUM_USER }}
chart_repository_password: ${{ secrets.DV_CHARTMUSEUM_PASSWORD }}
current_directory: ${{ inputs.current_directory }}