Skip to content

Commit fc1106b

Browse files
authored
feat: add check and push helm chart (#8)
* feat: add check and push helm chart * fix: add full repository name
1 parent 59fbee4 commit fc1106b

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: 'Push Helm Chart'
2+
description: Create and push Helm Chart to Repository if helm folder exists
3+
env:
4+
GCR_IMAGE: oci://ghcr.io/${{ github.repository }}
5+
runs:
6+
using: "composite"
7+
steps:
8+
- name: Check file existence
9+
id: check_files
10+
uses: andstor/file-existence-action@v2
11+
with:
12+
files: "helm/values.yml"
13+
- id: lower-repo
14+
shell: pwsh
15+
run: |
16+
"::set-output name=repository::$($env:GCR_IMAGE.ToLowerInvariant())"
17+
- name: Push Helm chart
18+
if: steps.check_files.outputs.files_exists == 'true'
19+
uses: bsord/helm-push@v4.1.0
20+
with:
21+
useOCIRegistry: true
22+
registry-url: ${{ steps.lower-repo.outputs.repository }}
23+
access-token: ${{ secrets.GITHUB_TOKEN }}
24+
username: ${{ github.actor }}
25+
force: true
26+
chart-folder: helm
27+
add-repositories: true

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ jobs:
8686
- name: Docker Build
8787
run: mvn package -Dmaven.test.skip.exec=true -P docker-image -Djib.to.image=${REGISTRY}/backbase/${GITHUB_REPOSITORY##*/}:${{ inputs.version }}
8888

89+
- name: Create & Push Helm Chart
90+
uses: backbase/workflows/.github/actions/push-helm-chart@v0.1.0
91+
8992
- name: Configure Maven
9093
uses: backbase/workflows/.github/actions/maven-bump@v0.1.0
9194

0 commit comments

Comments
 (0)