feat: change drone to gitea actions
All checks were successful
Release Chart / release (push) Successful in 12s

This commit is contained in:
2023-08-28 01:07:35 +03:00
parent d147635509
commit 58f359047f
2 changed files with 29 additions and 22 deletions

View File

@ -1,22 +0,0 @@
---
kind: pipeline
type: docker
name: default
trigger:
event:
- push
- tag
steps:
- name: release
image: cr.grachevko.ru/drone/helm:24
settings:
tag: ${DRONE_TAG}
username:
from_secret: HELM_REPO_USERNAME
password:
from_secret: HELM_REPO_PASSWORD
when:
event:
- tag

View 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 }}