mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-23 17:52:36 -04:00
43 lines
1019 B
YAML
43 lines
1019 B
YAML
name: Release Helm Chart
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Helm
|
|
uses: azure/setup-helm@v4
|
|
|
|
- name: Log in to GHCR
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Update Helm Dependencies
|
|
run: |
|
|
helm dependency update ./chart
|
|
|
|
- name: Package Helm Chart
|
|
run: |
|
|
export tag=$(echo ${GITHUB_REF#refs/tags/} | sed 's/^v//')
|
|
helm package ./chart --version $tag --app-version $tag
|
|
|
|
- name: Build Helm-safe repo name
|
|
run: |
|
|
REPO_NAME="$(echo "oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/helm-charts" | tr '[:upper:]' '[:lower:]')"
|
|
echo "REPO_NAME=${REPO_NAME}" >> "${GITHUB_ENV}"
|
|
|
|
- name: Push Helm Chart to GHCR
|
|
run: |
|
|
helm push kyoo-*.tgz "${REPO_NAME}"
|