From 6625d3907ada775e71793721bbac0031989f7cc4 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Sat, 6 Aug 2022 21:17:06 +0000 Subject: [PATCH] ci updates and fixes --- .woodpecker/tools-wasm-pack-plugin.yml | 1 + .woodpecker/wasm-o-x-rust.yml | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.woodpecker/tools-wasm-pack-plugin.yml b/.woodpecker/tools-wasm-pack-plugin.yml index faf078c..0ceed2f 100644 --- a/.woodpecker/tools-wasm-pack-plugin.yml +++ b/.woodpecker/tools-wasm-pack-plugin.yml @@ -16,6 +16,7 @@ pipeline: from_secret: DEPLOY_TOKEN repo: git.koval.net/cyclane/game-algorithms/wasm-pack-plugin tags: latest + force_tag: true context: tools/wasm-pack-plugin dockerfile: tools/wasm-pack-plugin/Dockerfile when: diff --git a/.woodpecker/wasm-o-x-rust.yml b/.woodpecker/wasm-o-x-rust.yml index 3fefd85..f47a0fc 100644 --- a/.woodpecker/wasm-o-x-rust.yml +++ b/.woodpecker/wasm-o-x-rust.yml @@ -1,26 +1,26 @@ -pipeline: - build: - image: git.koval.net/cyclane/game-algorithms/wasm-pack - commands: - - cd wasm/o-x-rust - - wasm-pack build +clone: + git: + image: woodpeckerci/plugin-git when: path: include: - wasm/o-x-rust/* - .woodpecker/wasm-o-x-rust.yml - publish: - image: plugins/npm +pipeline: + build and publish: + image: git.koval.net/cyclane/game-algorithms/wasm-pack settings: + actions: build,publish + folder: wasm/o-x-rust + scope: game-algorithms username: cyclane - password: - from_secret: DEPLOY_TOKEN token: from_secret: DEPLOY_TOKEN registry: https://git.koval.net/api/packages/cyclane/npm/ - folder: wasm/o-x-rust/pkg when: path: include: - wasm/o-x-rust/* - - .woodpecker/wasm-o-x-rust.yml \ No newline at end of file + - .woodpecker/wasm-o-x-rust.yml +depends_on: + - tools-wasm-pack-plugin \ No newline at end of file