asdasd
Some checks failed
Helm / helm-lint (pull_request) Successful in 14s
Helm / helm-unittest (pull_request) Successful in 17s
Helm / helm-lint (push) Successful in 14s
Helm / helm-unittest (push) Successful in 15s
Release / generate-chart-publish (push) Failing after 29s
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
Some checks failed
Helm / helm-lint (pull_request) Successful in 14s
Helm / helm-unittest (pull_request) Successful in 17s
Helm / helm-lint (push) Successful in 14s
Helm / helm-unittest (push) Successful in 15s
Release / generate-chart-publish (push) Failing after 29s
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
aede99f3f2
commit
5b2c089d6f
@ -17,17 +17,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
apk update
|
apk update
|
||||||
apk add git npm
|
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
|
- uses: actions/checkout@v4.2.2
|
||||||
- name: Lint helm files
|
- name: Lint helm files
|
||||||
run: |
|
run: |
|
||||||
@ -44,17 +33,6 @@ jobs:
|
|||||||
apk update
|
apk update
|
||||||
apk add git npm
|
apk add git npm
|
||||||
- uses: actions/checkout@v4.2.2
|
- 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
|
- name: Unittest
|
||||||
run: |
|
run: |
|
||||||
helm unittest --strict --file 'unittests/**/*.yaml' ./
|
helm unittest --strict --file 'unittests/**/*.yaml' ./
|
@ -11,20 +11,11 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
generate-chart-publish:
|
generate-chart-publish:
|
||||||
|
container:
|
||||||
|
image: docker.io/volkerraschek/helm:3.16.1
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
# - name: Import GPG key
|
||||||
# id: import_gpg
|
# id: import_gpg
|
||||||
# uses: https://github.com/crazy-max/ghaction-import-gpg@v6
|
# 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
|
# Using helm gpg plugin as 'helm package --sign' has issues with gpg2: https://github.com/helm/helm/issues/2843
|
||||||
- name: package chart
|
- name: package chart
|
||||||
|
env:
|
||||||
|
HELM_REPO_NAME: test
|
||||||
|
HELM_REPO_PASSWORD: ${{ secrets.HELM_REPO_PASSWORD }}
|
||||||
|
HELM_REPO_USERNAME: ${{ secrets.HELM_REPO_USERNAME }}
|
||||||
run: |
|
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 dependency build
|
||||||
helm package --version "${GITHUB_REF#refs/tags/v}" ./
|
helm package --version "${PACKAGE_VERSION}" ./
|
||||||
# mkdir gitea
|
helm cm-push ${REPOSITORY_NAME}-${PACKAGE_VERSION}.tgz ${HELM_REPO_NAME}
|
||||||
# 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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user