Skip to content

Commit ce517d8

Browse files
authored
fix: helm chart action parameters (#10)
* fix: helm chart action parameters * fix: helm chart action parameters * fix: helm chart action parameters * fix: helm chart action parameters
1 parent 765abf9 commit ce517d8

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed
Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
name: 'Push Helm Chart'
22
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
513
runs:
614
using: "composite"
715
steps:
@@ -10,6 +18,10 @@ runs:
1018
uses: andstor/file-existence-action@v2
1119
with:
1220
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
1325
- id: lower-repo
1426
shell: pwsh
1527
run: |
@@ -20,8 +32,8 @@ runs:
2032
with:
2133
useOCIRegistry: true
2234
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 }}
2537
force: true
2638
chart-folder: helm
2739
add-repositories: true

.github/workflows/maven-docker-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ jobs:
8888

8989
- name: Create & Push Helm Chart
9090
uses: backbase/workflows/.github/actions/push-helm-chart@main
91+
with:
92+
repository: ${{ github.repository }}
93+
username: ${{ github.actor }}
94+
token: ${{ secrets.github-token }}
9195

9296
- name: Configure Maven
9397
uses: backbase/workflows/.github/actions/[email protected]

0 commit comments

Comments
 (0)