This commit is contained in:
Michael Kriese 2023-12-07 13:57:07 +01:00
parent ff61f95b4f
commit 2efae6afcb
No known key found for this signature in database
GPG key ID: B83F553A0724D44E
4 changed files with 1 additions and 167 deletions

View file

@ -10,5 +10,5 @@ jobs:
echo "runner.arch: ${{ runner.arch }}"
echo "RUNNER_ARCH: ${RUNNER_ARCH}"
- uses: ./forgejo/actions/test
- uses: ./.forgejo/actions/test
- uses: sigstore/cosign-installer@11086d25041f77fe8fe7b9ea4e48e3b9192b8f19 # v3.1.2

View file

@ -1,48 +0,0 @@
platform: linux/amd64
when:
event:
- pull_request
- push
branch:
- main
- release/**
services:
docker:
image: docker:24.0.7-dind
pull: true
environment:
DOCKER_TLS_CERTDIR: ''
matrix:
k8s:
# from https://hub.docker.com/r/kindest/node/tags
# - v1.25.3 # renovate: kindest
- v1.28.0 # renovate: kindest
pipeline:
create-cluster:
image: alpine:3.18.5
pull: true
environment:
DOCKER_HOST: tcp://docker:2375
commands:
- apk add docker-cli kind
- export KUBECONFIG=$${CI_WORKSPACE}/kube.config
- sleep 15s
- docker info
- kind create cluster --config e2e/kind.cluster.yml --image kindest/node:${k8s} --wait 1m
- kind get clusters
- docker ps
# replace localhost or 0.0.0.0 in the kubeconfig file with "docker", in order to be able to reach the cluster through the docker service
- sed -i -E -e 's/localhost|0\.0\.0\.0/docker/g' $${KUBECONFIG}
ct-install:
image: quay.io/helmpack/chart-testing:v3.10.1
pull: true
commands:
- git fetch --no-tags --filter=blob:none origin
- export KUBECONFIG=$${CI_WORKSPACE}/kube.config
- kubectl get no -o wide
- ct install --config tools/ct.yml --charts .

View file

@ -1,71 +0,0 @@
platform: linux/amd64
when:
event:
- pull_request
- tag
- push
branch:
- main
- release/**
pipeline:
prettier:
image: alpine:3.18.5
pull: true
commands:
- apk add nodejs npm
- npm ci
- npm run prettier
- npx markdownlint-cli .
deps:
image: alpine:3.18.5
pull: true
commands:
- apk add helm
- helm dependency build
helm-lint:
image: alpine:3.18.5
pull: true
commands:
- apk add helm
- helm lint
helm-template:
image: alpine:3.18.5
pull: true
commands:
- apk add helm
- helm template --debug gitea-helm .
helm-unittests:
image: alpine:3.18.5
pull: true
commands:
- apk add make helm git bash
- helm plugin install --version v0.3.6 https://github.com/helm-unittest/helm-unittest
- helm dependency update
- make unittests
verify-readme:
image: alpine:3.18.5
pull: true
commands:
- apk add make nodejs npm git
- make readme
- git diff --exit-code --name-only README.md
yaml-lint:
image: quay.io/helmpack/chart-testing:v3.10.1
pull: true
commands:
- yamllint -f colored .
ct-lint:
image: quay.io/helmpack/chart-testing:v3.10.1
pull: true
commands:
- git fetch --no-tags --filter=blob:none origin
- ct lint --config tools/ct.yml --charts .

View file

@ -1,47 +0,0 @@
platform: linux/amd64
depends_on:
- lint
- e2e
when:
event:
- tag
tag: v*
pipeline:
generate-chart:
image: alpine:3.18.5
pull: true
commands:
- apk add git nodejs npm helm
- helm dependency build
- rm -rf tmp/
- helm package --version "${CI_COMMIT_TAG##v}" -d tmp/ ./
- npm ci
- npm run changelog "${CI_COMMIT_TAG##v}" tmp/changelog.md
secrets:
- token
publish-release:
image: codeberg.org/woodpecker-plugins/gitea-release:0.3.1
pull: true
settings:
base_url: https://codeberg.org
api_key:
from_secret: token
files: tmp/*.tgz
title: ${CI_COMMIT_TAG##v}
file_exists: fail
note: tmp/changelog.md
target: main
publish-chart:
image: alpine:3.18.5
pull: true
commands:
- apk add helm
- echo $${TOKEN} | helm registry login -u viceice --password-stdin codeberg.org/forgejo-contrib
- helm push tmp/forgejo-${CI_COMMIT_TAG##v}.tgz oci://codeberg.org/forgejo-contrib
secrets:
- token