From 0ad5ec427d6240295b4c5c7ff20ab76e8f002669 Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Fri, 16 Dec 2022 01:33:09 +0100 Subject: [PATCH] upgrade CI --- .woodpecker/commitBuild.yml | 17 ++++++++++++++ .../{commit.yml => commitDatabase.yml} | 22 +++++-------------- .woodpecker/commitDocker.yml | 11 ++++++++++ 3 files changed, 33 insertions(+), 17 deletions(-) create mode 100644 .woodpecker/commitBuild.yml rename .woodpecker/{commit.yml => commitDatabase.yml} (65%) create mode 100644 .woodpecker/commitDocker.yml diff --git a/.woodpecker/commitBuild.yml b/.woodpecker/commitBuild.yml new file mode 100644 index 0000000000..ff86c5e7df --- /dev/null +++ b/.woodpecker/commitBuild.yml @@ -0,0 +1,17 @@ +pipeline: + build: + image: node:${NODE_VERSION} + commands: + - corepack enable + - yarn install + - yarn build + environment: + - YARN_ENABLE_IMMUTABLE_INSTALLS=false + +matrix: + NODE_VERSION: + - 18.12.1 + - 19.2.0 + +branches: + include: [ master, develop, feature/* ] diff --git a/.woodpecker/commit.yml b/.woodpecker/commitDatabase.yml similarity index 65% rename from .woodpecker/commit.yml rename to .woodpecker/commitDatabase.yml index 0bbd88c4b1..f14590c56e 100644 --- a/.woodpecker/commit.yml +++ b/.woodpecker/commitDatabase.yml @@ -1,13 +1,4 @@ pipeline: - build: - image: node:${NODE_VERSION} - commands: - - corepack enable - - yarn install - - yarn build - environment: - - DATABASE=12 - - YARN_ENABLE_IMMUTABLE_INSTALLS=false migrate: image: node:19.2.0 commands: @@ -18,14 +9,6 @@ pipeline: environment: - YARN_ENABLE_IMMUTABLE_INSTALLS=false -matrix: - NODE_VERSION: - - 18.12.1 - - 19.2.0 - DATABASE: - - 12 - - latest - services: database: image: postgres:${DATABASE} @@ -34,5 +17,10 @@ services: redis: image: redis +matrix: + DATABASE: + - 12 + - latest + branches: include: [ master, develop, feature/* ] diff --git a/.woodpecker/commitDocker.yml b/.woodpecker/commitDocker.yml new file mode 100644 index 0000000000..d13a034742 --- /dev/null +++ b/.woodpecker/commitDocker.yml @@ -0,0 +1,11 @@ +pipeline: + docker-build: + image: woodpeckerci/plugin-docker-buildx + settings: + repo: codeberg.org/thatonecalculator/calckey + registry: codeberg.org + dry_run: true + output: type=oci,dest=thatonecalculator-calckey.tar + +branches: + include: [ master, develop ]