From 8de903f860d57dfaf0c6d20aabd7d5118e2a0497 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Fri, 18 Oct 2024 14:21:00 +0200 Subject: [PATCH] added tag pipeline --- .gitea/workflows/buildPush.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitea/workflows/buildPush.yaml diff --git a/.gitea/workflows/buildPush.yaml b/.gitea/workflows/buildPush.yaml new file mode 100644 index 0000000..7f42add --- /dev/null +++ b/.gitea/workflows/buildPush.yaml @@ -0,0 +1,32 @@ +name: Lint and Test Charts + +on: + push: + # Pattern matched against refs/tags + tags: + - '**' # Push events to every tag including hierarchical tags like v1.0/beta +jobs: + lint-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + name: Check out code + + - name: Set up Helm + uses: azure/setup-helm@v4.2.0 + with: + version: v3.14.4 + + - name: build helm package + shell: bash + env: + REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }} + REPO_USERNAME: ${{ vars.REPO_USERNAME }} + REPO_HOST: ${{ vars.REPO_HOST }} + run: | + REPO_PATH=$(git rev-parse --show-toplevel) + mkdir /tmp/build + cd /tmp/build + helm build $REPO_PATH + helm registry login --username $REPO_USERNAME --password $REPO_PASSWORD $REPO_HOST + helm push *.tgz