gitea workflow for build and push smarti-helm-chart (#1)
All checks were successful
Build and Push / push (push) Successful in 33s

Reviewed-on: #1
This commit is contained in:
simon 2024-02-25 12:36:25 +00:00
parent 4bb3f6398c
commit 5d47061bae
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,27 @@
name: Build and Push
on:
push:
branches:
- master
- releases/*
jobs:
push:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # all history for all branches and tags
- name: Install Helm
run: curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
- name: pack helm release
run: helm package .
- name: Get Package Name
id: meta
run: echo PACKAGE_NAME=$(ls | grep .tgz) >> $GITHUB_OUTPUT
- name: Push to Package Repo
run: curl --user ${{ secrets.HELM_USER }}:${{ secrets.HELM_PASSWD }} -X POST --upload-file ./${{ steps.meta.outputs.PACKAGE_NAME }} https://gitea.simonzeyer.de/api/packages/schuelerlabor-cleverlab/helm/api/charts

View File

@ -0,0 +1,21 @@
name: Build and Test
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # all history for all branches and tags
- name: Install Helm
run: curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
- name: Lint Helm Chart
run: helm lint .
- name: pack helm release
run: helm package .