Build and Push workflow on Push into Master Repo
All checks were successful
Build and Test / build (pull_request) Successful in 31s
All checks were successful
Build and Test / build (pull_request) Successful in 31s
This commit is contained in:
parent
27ac839440
commit
0baec568f3
33
.gitea/workflows/push-helm-chart.yaml
Normal file
33
.gitea/workflows/push-helm-chart.yaml
Normal file
@ -0,0 +1,33 @@
|
||||
name: Build and Push
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- releases/*
|
||||
|
||||
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 .
|
||||
push:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- name: Get Package Name
|
||||
run: echo PACKAGE_NAME=$(ls | grep .tgz) >> $GITHUB_OUTPUT
|
||||
- name: Push to Package Repo
|
||||
run: curl --user $HELM_USER:$HELM_PASSWD -X POST --upload-file ./$PACKAGE_NAME.tgz https://gitea.simonzeyer.de/api/packages/schuelerlabor-cleverlab/helm/api/charts
|
Loading…
x
Reference in New Issue
Block a user