From 984f11e837561820c99673e226c873fb3512d450 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Sat, 25 May 2024 14:33:08 +0200 Subject: [PATCH] Try migrating to Woodpecker --- .drone.yml | 31 ------------------------------- .woodpecker.yaml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 31 deletions(-) delete mode 100644 .drone.yml create mode 100644 .woodpecker.yaml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 9db2b5f..0000000 --- a/.drone.yml +++ /dev/null @@ -1,31 +0,0 @@ ---- -# ---------------------------------------------- -# -- Build an image and push it to the registry -# ---------------------------------------------- -kind: pipeline -type: docker -name: Build the builder - -trigger: - event: - - push - -steps: - - name: Prepare the builder image - image: alpine - privileged: true - environment: - GITEA_TOKEN: - from_secret: GITEA_TOKEN - BUILDAH_REG: git.badhouseplants.net/badhouseplants/badhouseplants-builder - commands: - - ./build - - - name: Cleanup - image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:latest - environment: - GITEA_TOKEN: - from_secret: GITEA_TOKEN - BUILDAH_REG: git.badhouseplants.net/badhouseplants/badhouseplants-builder - commands: - - cleanup diff --git a/.woodpecker.yaml b/.woodpecker.yaml new file mode 100644 index 0000000..991f084 --- /dev/null +++ b/.woodpecker.yaml @@ -0,0 +1,33 @@ +--- +when: + event: + - push + +steps: + build: + image: alpine + name: Build shoebill operator image + privileged: true + commands: + - ./build + secrets: + - gitea_token + backend_options: + kubernetes: + resources: + requests: + memory: 500Mi + cpu: 200m + limits: + memory: 1000Mi + cpu: 1000m + securityContext: + privileged: true + cleanup: + image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:latest + secrets: + - gitea_token + environment: + BUILDAH_REG: git.badhouseplants.net/badhouseplants/badhouseplants-builder + commands: + - cleanup