From 0f1247ff334794a2f7f6e9d3a7d094f2fc75cf10 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 16 Jan 2024 14:13:39 +0100 Subject: [PATCH] ci: migrate to woodpecker --- .drone.yml | 80 ----------------------------------- .prettierignore | 1 - .woodpecker/build-package.yml | 31 ++++++++++++++ .woodpecker/notify.yml | 26 ++++++++++++ README.md | 4 +- 5 files changed, 59 insertions(+), 83 deletions(-) delete mode 100644 .drone.yml create mode 100644 .woodpecker/build-package.yml create mode 100644 .woodpecker/notify.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 48ef58e..0000000 --- a/.drone.yml +++ /dev/null @@ -1,80 +0,0 @@ ---- -kind: pipeline -name: build - -platform: - os: linux - arch: amd64 - -steps: - - name: generate - image: thegeeklab/alpine-tools - commands: - - make - - - name: publish - image: thegeeklab/drone-git-action - settings: - action: - - pages - author_email: shipper@rknet.org - author_name: shipper - branch: catalog - message: auto-update crds catalog - netrc_machine: gitea.rknet.org - netrc_password: - from_secret: gitea_token - pages_directory: dist/ - remote_url: https://gitea.rknet.org/infra/${DRONE_REPO_NAME} - when: - ref: - - refs/heads/main - -trigger: - ref: - - refs/heads/main - - refs/tags/** - - refs/pull/** - ---- -kind: pipeline -name: notifications - -platform: - os: linux - arch: amd64 - -steps: - - name: matrix - image: thegeeklab/drone-matrix - settings: - homeserver: - from_secret: matrix_homeserver - password: - from_secret: matrix_password - roomid: - from_secret: matrix_roomid - template: "Status: **{{ .Build.Status }}**
Build: [{{ .Repo.Owner }}/{{ .Repo.Name }}]({{ .Build.Link }}){{ if .Build.Branch }} ({{ .Build.Branch }}){{ end }} by {{ .Commit.Author }}
Message: {{ .Commit.Message.Title }}" - username: - from_secret: matrix_username - when: - status: - - success - - failure - -trigger: - ref: - - refs/heads/main - - refs/tags/** - status: - - success - - failure - -depends_on: - - build - ---- -kind: signature -hmac: f93aa1c27fdb75892ba6c5d0574d37332da585254a2af407a209efa244f4ef83 - -... diff --git a/.prettierignore b/.prettierignore index 37bc12a..6b1d0bf 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1 @@ -.drone.yml LICENSE diff --git a/.woodpecker/build-package.yml b/.woodpecker/build-package.yml new file mode 100644 index 0000000..7a9093e --- /dev/null +++ b/.woodpecker/build-package.yml @@ -0,0 +1,31 @@ +--- +when: + - event: [pull_request, tag] + - event: [push, manual] + branch: + - ${CI_REPO_DEFAULT_BRANCH} + +steps: + - name: build + image: quay.io/thegeeklab/alpine-tools + commands: + - make + + - name: publish + image: quay.io/thegeeklab/wp-git-action + settings: + action: + - pages + author_email: shipper@rknet.org + author_name: shipper + branch: catalog + message: auto-update crds catalog + netrc_machine: gitea.rknet.org + netrc_password: + from_secret: gitea_token + pages_directory: dist/ + remote_url: https://gitea.rknet.org/infra/${CI_REPO_NAME} + when: + - event: [push, manual] + branch: + - ${CI_REPO_DEFAULT_BRANCH} diff --git a/.woodpecker/notify.yml b/.woodpecker/notify.yml new file mode 100644 index 0000000..e9e827c --- /dev/null +++ b/.woodpecker/notify.yml @@ -0,0 +1,26 @@ +--- +when: + - event: [tag] + - event: [push, manual] + branch: + - ${CI_REPO_DEFAULT_BRANCH} + +runs_on: [success, failure] + +steps: + matrix: + image: quay.io/thegeeklab/wp-matrix + settings: + homeserver: + from_secret: matrix_homeserver + password: + from_secret: matrix_password + roomid: + from_secret: matrix_roomid + username: + from_secret: matrix_username + when: + - status: [failure] + +depends_on: + - build-package diff --git a/README.md b/README.md index 6460ae2..d751f30 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # crds-catalog -[![Build Status](https://img.shields.io/drone/build/infra/crds-catalog?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/infra/crds-catalog) -[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?label=license)](LICENSE) +[![Build Status](https://ci.rknet.org/api/badges/infra/crds-catalog/status.svg)](https://ci.rknet.org/repos/infra/crds-catalog) +[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?label=license)](https://gitea.rknet.org/infra/crds-catalog/src/branch/main/LICENSE) This repository to aggregatepopular Kubernetes CRDs (CustomResourceDefinition) in JSON schema format. These schemas can be used by various tools such as Datree, Kubeconform and Kubeval to perform validation on custom (and native) Kuberentes resources. Running Kubernetes schema validation checks helps apply the "shift-left approach" on machines without giving them access to your cluster (e.g. locally or on CI).