File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : ' Push Helm Chart'
2
2
description : Create and push Helm Chart to Repository if helm folder exists
3
- env :
4
- GCR_IMAGE : oci://ghcr.io/${{ github.repository }}
3
+ inputs :
4
+ repository :
5
+ description : ' Github repository name'
6
+ required : true
7
+ token :
8
+ description : ' Github Token to access repository'
9
+ required : true
10
+ username :
11
+ description : ' Github Username to access repository'
12
+ required : true
5
13
runs :
6
14
using : " composite"
7
15
steps :
10
18
uses : andstor/file-existence-action@v2
11
19
with :
12
20
files : " helm/values.yml"
21
+ - name : set repo url
22
+ shell : bash
23
+ run : |
24
+ echo "GCR_IMAGE=oci://ghcr.io/${{ inputs.repository }}" >> $GITHUB_ENV
13
25
- id : lower-repo
14
26
shell : pwsh
15
27
run : |
20
32
with :
21
33
useOCIRegistry : true
22
34
registry-url : ${{ steps.lower-repo.outputs.repository }}
23
- access-token : ${{ secrets.GITHUB_TOKEN }}
24
- username : ${{ github.actor }}
35
+ access-token : ${{ inputs.token }}
36
+ username : ${{ inputs.username }}
25
37
force : true
26
38
chart-folder : helm
27
39
add-repositories : true
Original file line number Diff line number Diff line change 88
88
89
89
- name : Create & Push Helm Chart
90
90
uses : backbase/workflows/.github/actions/push-helm-chart@main
91
+ with :
92
+ repository : ${{ github.repository }}
93
+ username : ${{ github.actor }}
94
+ token : ${{ secrets.github-token }}
91
95
92
96
- name : Configure Maven
93
97
uses :
backbase/workflows/.github/actions/[email protected]
You can’t perform that action at this time.
0 commit comments