Actions (#1)
Reviewed-on: #1 Co-authored-by: Konstantin Grachev <me@grachevko.ru> Co-committed-by: Konstantin Grachev <me@grachevko.ru>
This commit is contained in:
29
.gitea/workflows/release.yaml
Normal file
29
.gitea/workflows/release.yaml
Normal file
@ -0,0 +1,29 @@
|
||||
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 }}
|
Reference in New Issue
Block a user