diff --git a/.woodpecker/e2e.yml b/.woodpecker/e2e.yml deleted file mode 100644 index 60b193b..0000000 --- a/.woodpecker/e2e.yml +++ /dev/null @@ -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 . diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml deleted file mode 100644 index 85af536..0000000 --- a/.woodpecker/lint.yml +++ /dev/null @@ -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 . diff --git a/.woodpecker/release-version.yml b/.woodpecker/release-version.yml deleted file mode 100644 index 382808e..0000000 --- a/.woodpecker/release-version.yml +++ /dev/null @@ -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