From 0baec568f3d71a444797139ab0a49ccbd911bda2 Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 25 Feb 2024 12:01:19 +0000 Subject: [PATCH] Build and Push workflow on Push into Master Repo --- .gitea/workflows/push-helm-chart.yaml | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitea/workflows/push-helm-chart.yaml diff --git a/.gitea/workflows/push-helm-chart.yaml b/.gitea/workflows/push-helm-chart.yaml new file mode 100644 index 0000000..1dda051 --- /dev/null +++ b/.gitea/workflows/push-helm-chart.yaml @@ -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