Reviewed-on: #1 Co-authored-by: Konstantin Grachev <me@grachevko.ru> Co-committed-by: Konstantin Grachev <me@grachevko.ru>
30 lines
715 B
YAML
30 lines
715 B
YAML
name: Release Chart
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
REGISTRY: harbor.grachevko.ru
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: yokawasa/action-setup-kube-tools@v0.9.3
|
|
with:
|
|
setup-tools: helm
|
|
- name: deps and lint
|
|
run: |
|
|
helm dependency update
|
|
helm lint --strict .
|
|
- name: build
|
|
run: helm package --version ${{ gitea.ref_name }} .
|
|
- name: publish
|
|
run: |
|
|
echo "${{ secrets.REGISTRY_PASSWORD }}" | helm registry login ${{ env.REGISTRY }} --username "${{ secrets.REGISTRY_USERNAME }}" --password-stdin
|
|
helm push ./*.tgz oci://harbor.grachevko.ru/${{ gitea.repository }}
|