smarti-helm/.gitea/workflows/push-helm-chart.yaml
simon ee24ccac8c
All checks were successful
Build and Test / build (pull_request) Successful in 29s
.gitea/workflows/push-helm-chart.yaml aktualisiert
2024-02-25 12:02:39 +00:00

34 lines
906 B
YAML

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 $HELM_REPO