feat: change drone to gitea actions
All checks were successful
Release Chart / release (push) Successful in 13s
All checks were successful
Release Chart / release (push) Successful in 13s
This commit is contained in:
22
.drone.yml
22
.drone.yml
@ -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
|
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 }}
|
45
.github/workflows/main.yaml
vendored
45
.github/workflows/main.yaml
vendored
@ -1,45 +0,0 @@
|
||||
name: Build
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install Helm
|
||||
run: |
|
||||
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
|
||||
helm plugin install https://github.com/hayorov/helm-gcs
|
||||
- name: Lint chart
|
||||
run: |
|
||||
helm lint .
|
||||
|
||||
release:
|
||||
needs: lint
|
||||
if: github.ref == 'refs/heads/master'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install Helm
|
||||
run: |
|
||||
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
|
||||
helm plugin install https://github.com/hayorov/helm-gcs
|
||||
- name: Dump GCloud auth key
|
||||
run: |
|
||||
cat <<'EOF' > gcloud_auth_key.json
|
||||
${{ secrets.GCLOUD_AUTH_KEY }}
|
||||
EOF
|
||||
- name: Release chart
|
||||
env:
|
||||
GOOGLE_APPLICATION_CREDENTIALS: ${{ github.workspace }}/gcloud_auth_key.json
|
||||
run: |
|
||||
helm repo add hahow gs://hahow-helm-charts
|
||||
helm repo update
|
||||
PACKAGE_FILE_PATH=$(helm package . | sed 's/^Successfully packaged chart and saved it to: //')
|
||||
helm gcs push $(basename ${PACKAGE_FILE_PATH}) hahow --public
|
Reference in New Issue
Block a user