Skip to content

Commit

Permalink
Merge pull request #17 from caas-team/feat/helmbuild
Browse files Browse the repository at this point in the history
add helm build wf
  • Loading branch information
eumel8 authored Apr 15, 2024
2 parents 06c1685 + 600f736 commit 237aa3e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/helm-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and push Helm Package

on:
push:
tags:
- "*"

jobs:
helm:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Helm lint & package & push
run: |
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
helm version
helm registry login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
helm registry login ${MTR} -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}
cd chart
helm lint .
helm package .
helm push $(ls *.tgz| head -1) oci://ghcr.io/caas-team/charts
helm push $(ls *.tgz| head -1) oci://${MTR}/${REPO}/charts
env:
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
MTR: mtr.devops.telekom.de
REPO: caas

0 comments on commit 237aa3e

Please sign in to comment.