Compare commits
30 Commits
8956532e78
...
5b2c089d6f
Author | SHA1 | Date | |
---|---|---|---|
5b2c089d6f | |||
aede99f3f2 | |||
0a72c4bb58 | |||
378e799afa | |||
89c43d7fb4 | |||
7265403bd9 | |||
7937f9edf2 | |||
fe2ab4417f | |||
a9abdccaa3 | |||
b52a4982a6 | |||
cc33ca2e0c | |||
cc955c6178 | |||
e1f37b8ac9 | |||
3e868aad35 | |||
208acd6d96 | |||
3be3977233 | |||
1e0cdc6dfd | |||
86bbd6f1d2 | |||
6f6ad61352 | |||
bde198ab0f | |||
22f0fd4176 | |||
c0aadbfa52 | |||
5744511f6e | |||
de3c85ba4d | |||
da18fbf50c | |||
0cc2323eb1 | |||
a3358b0be5 | |||
a53ab3b2a0 | |||
a976273cbc | |||
5646ebfa8c |
64
.drone.yml
64
.drone.yml
@ -124,7 +124,7 @@ steps:
|
||||
- npm run readme:link
|
||||
- npm run readme:lint
|
||||
- npm run readme:parameters
|
||||
image: docker.io/library/node:23.5.0-alpine
|
||||
image: docker.io/library/node:23.6.0-alpine
|
||||
resources:
|
||||
limits:
|
||||
cpu: 150
|
||||
@ -162,39 +162,39 @@ trigger:
|
||||
exclude:
|
||||
- tag
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: kubernetes
|
||||
name: Release
|
||||
# ---
|
||||
# kind: pipeline
|
||||
# type: kubernetes
|
||||
# name: Release
|
||||
|
||||
clone:
|
||||
disable: true
|
||||
# clone:
|
||||
# disable: true
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
# platform:
|
||||
# os: linux
|
||||
|
||||
steps:
|
||||
- name: clone repository
|
||||
image: git.cryptic.systems/volker.raschek/git:1.4.0
|
||||
# steps:
|
||||
# - name: clone repository
|
||||
# image: git.cryptic.systems/volker.raschek/git:1.4.0
|
||||
|
||||
- name: release-helm-chart
|
||||
commands:
|
||||
- helm repo add prometheus-exporters https://charts.cryptic.systems/prometheus-exporters
|
||||
- helm package --version ${DRONE_TAG} .
|
||||
- helm cm-push ${DRONE_REPO_NAME}-${DRONE_TAG}.tgz prometheus-exporters
|
||||
environment:
|
||||
HELM_REPO_PASSWORD:
|
||||
from_secret: helm_repo_password
|
||||
HELM_REPO_USERNAME:
|
||||
from_secret: helm_repo_username
|
||||
image: git.cryptic.systems/volker.raschek/helm:3.16.4
|
||||
resources:
|
||||
limits:
|
||||
cpu: 150
|
||||
memory: 150M
|
||||
# - name: release-helm-chart
|
||||
# commands:
|
||||
# - helm repo add prometheus-exporters https://charts.cryptic.systems/prometheus-exporters
|
||||
# - helm package --version ${DRONE_TAG} .
|
||||
# - helm cm-push ${DRONE_REPO_NAME}-${DRONE_TAG}.tgz prometheus-exporters
|
||||
# environment:
|
||||
# HELM_REPO_PASSWORD:
|
||||
# from_secret: helm_repo_password
|
||||
# HELM_REPO_USERNAME:
|
||||
# from_secret: helm_repo_username
|
||||
# image: git.cryptic.systems/volker.raschek/helm:3.16.4
|
||||
# resources:
|
||||
# limits:
|
||||
# cpu: 150
|
||||
# memory: 150M
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
repo:
|
||||
- volker.raschek/prometheus-postgres-exporter
|
||||
# trigger:
|
||||
# event:
|
||||
# - tag
|
||||
# repo:
|
||||
# - volker.raschek/prometheus-postgres-exporter
|
||||
|
@ -17,17 +17,6 @@ jobs:
|
||||
run: |
|
||||
apk update
|
||||
apk add git npm
|
||||
- name: Check if files were touched
|
||||
uses: dorny/paths-filter@v3.0.2
|
||||
id: changes
|
||||
with:
|
||||
filters: |
|
||||
yaml:
|
||||
- '**/*.yaml'
|
||||
- '**/*.yml'
|
||||
- name: Skip further steps, when condition is not met
|
||||
if: steps.filter.outputs.yaml == 'false'
|
||||
run: exit 0
|
||||
- uses: actions/checkout@v4.2.2
|
||||
- name: Lint helm files
|
||||
run: |
|
||||
@ -44,17 +33,6 @@ jobs:
|
||||
apk update
|
||||
apk add git npm
|
||||
- uses: actions/checkout@v4.2.2
|
||||
- name: Check if files were touched
|
||||
uses: dorny/paths-filter@v3.0.2
|
||||
id: changes
|
||||
with:
|
||||
filters: |
|
||||
yaml:
|
||||
- '**/*.yaml'
|
||||
- '**/*.yml'
|
||||
- name: Skip further steps, when condition is not met
|
||||
if: steps.filter.outputs.yaml == 'false'
|
||||
run: exit 0
|
||||
- name: Unittest
|
||||
run: |
|
||||
helm unittest --strict --file 'unittests/**/*.yaml' ./
|
@ -11,20 +11,11 @@ env:
|
||||
|
||||
jobs:
|
||||
generate-chart-publish:
|
||||
container:
|
||||
image: docker.io/volkerraschek/helm:3.16.1
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: install tools
|
||||
run: |
|
||||
apt update --yes
|
||||
apt install --yes curl ca-certificates curl gnupg
|
||||
# helm
|
||||
curl --location --output helm-v${HELM_VERSION}-linux-amd64.tar.gz https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz
|
||||
tar --extract --gzip --file helm-v${HELM_VERSION}-linux-amd64.tar.gz
|
||||
mv linux-amd64/helm /usr/local/bin/
|
||||
rm -rf linux-amd64 helm-v${HELM_VERSION}-linux-amd64.tar.gz
|
||||
helm version
|
||||
|
||||
# - name: Import GPG key
|
||||
# id: import_gpg
|
||||
# uses: https://github.com/crazy-max/ghaction-import-gpg@v6
|
||||
@ -35,14 +26,15 @@ jobs:
|
||||
|
||||
# Using helm gpg plugin as 'helm package --sign' has issues with gpg2: https://github.com/helm/helm/issues/2843
|
||||
- name: package chart
|
||||
env:
|
||||
HELM_REPO_NAME: test
|
||||
HELM_REPO_PASSWORD: ${{ secrets.HELM_REPO_PASSWORD }}
|
||||
HELM_REPO_USERNAME: ${{ secrets.HELM_REPO_USERNAME }}
|
||||
run: |
|
||||
REPOSITORY_NAME=$(echo ${GITHUB_REPOSITORY} | cut -d '/' -f 2)
|
||||
PACKAGE_VERSION=${GITHUB_REF#refs/tags/v}
|
||||
|
||||
helm repo add ${HELM_REPO_NAME} https://charts.cryptic.systems/${HELM_REPO_NAME}
|
||||
helm dependency build
|
||||
helm package --version "${GITHUB_REF#refs/tags/v}" ./
|
||||
# mkdir gitea
|
||||
# mv gitea*.tgz gitea/
|
||||
# curl -s -L -o gitea/index.yaml https://dl.gitea.com/charts/index.yaml
|
||||
# helm repo index gitea/ --url https://dl.gitea.com/charts --merge gitea/index.yaml
|
||||
# # push to dockerhub
|
||||
# echo ${{ secrets.DOCKER_CHARTS_PASSWORD }} | helm registry login -u ${{ secrets.DOCKER_CHARTS_USERNAME }} registry-1.docker.io --password-stdin
|
||||
# helm push gitea/gitea-${GITHUB_REF#refs/tags/v}.tgz oci://registry-1.docker.io/giteacharts
|
||||
# helm registry logout registry-1.docker.io
|
||||
helm package --version "${PACKAGE_VERSION}" ./
|
||||
helm cm-push ${REPOSITORY_NAME}-${PACKAGE_VERSION}.tgz ${HELM_REPO_NAME}
|
||||
|
Loading…
x
Reference in New Issue
Block a user