Skip to content

Build and Push Voltaserve official Helm Chart! #20

Build and Push Voltaserve official Helm Chart!

Build and Push Voltaserve official Helm Chart! #20

# Copyright 2024 Piotr Łoboda.
#
# Use of this software is governed by the Business Source License
# included in the file licenses/BSL.txt.
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software will be governed
# by the GNU Affero General Public License v3.0 only, included in the file
# licenses/AGPL.txt.
name: Build and Push Voltaserve official Helm Chart!
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "Chart.yaml"
jobs:
build_and_push:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set the tag
run: echo "TAG=$(cat Chart.yaml | awk '/^version:/ {print $2;exit}')" >> $GITHUB_ENV
- name: Verify if the tag exists
run: |
tags="$(git tag -l)"
if echo "$tags" | grep -i -q "${{ env.TAG }}"; then
echo "This tag ("${{ env.TAG }}") already exists!"
exit 1
fi
- name: Create release
uses: ncipollo/[email protected]
with:
commit: main
tag: "${{ env.TAG }}"
generateReleaseNotes: true
skipIfReleaseExists: true
- name: Release Helm Chart
uses: appany/[email protected]
with:
name: voltaserve
repository: kouprlabs/voltaserve-helm
tag: "${{ env.TAG }}"
path: .
registry: ghcr.io
registry_username: ${{ github.actor }}
registry_password: ${{ github.token }}
update_dependencies: true