From 8b85177ce656c1ee4d5ea398e82249db3650f471 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Sat, 6 Aug 2022 23:17:02 +0000 Subject: [PATCH] Fixed CI --- .woodpecker/tools-wasm-pack-plugin.yml | 5 +++-- .woodpecker/wasm-o-x-rust.yml | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.woodpecker/tools-wasm-pack-plugin.yml b/.woodpecker/tools-wasm-pack-plugin.yml index 31bc1e1..41453a9 100644 --- a/.woodpecker/tools-wasm-pack-plugin.yml +++ b/.woodpecker/tools-wasm-pack-plugin.yml @@ -3,11 +3,12 @@ pipeline: image: plugins/docker settings: dry_run: true + repo: git.koval.net/cyclane/game-algorithms/wasm-pack-plugin context: tools/wasm-pack-plugin dockerfile: tools/wasm-pack-plugin/Dockerfile when: branch: - exclude: [master] + exclude: [main] path: include: - tools/wasm-pack-plugin/* @@ -24,7 +25,7 @@ pipeline: context: tools/wasm-pack-plugin dockerfile: tools/wasm-pack-plugin/Dockerfile when: - branch: master + branch: main path: include: - tools/wasm-pack-plugin/* diff --git a/.woodpecker/wasm-o-x-rust.yml b/.woodpecker/wasm-o-x-rust.yml index 958ada4..e89aa33 100644 --- a/.woodpecker/wasm-o-x-rust.yml +++ b/.woodpecker/wasm-o-x-rust.yml @@ -1,4 +1,17 @@ pipeline: + build: + image: git.koval.net/cyclane/game-algorithms/wasm-pack + settings: + actions: build + folder: wasm/o-x-rust + scope: game-algorithms + when: + branch: + exclude: [main] + path: + include: + - wasm/o-x-rust/* + - .woodpecker/wasm-o-x-rust.yml build and publish: image: git.koval.net/cyclane/game-algorithms/wasm-pack settings: @@ -10,6 +23,7 @@ pipeline: from_secret: DEPLOY_TOKEN registry: https://git.koval.net/api/packages/cyclane/npm/ when: + branch: main path: include: - wasm/o-x-rust/*