From 38a6a1174a6ba98699efc40c86dffbfc2d7d4c29 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Sat, 6 Aug 2022 22:11:33 +0000 Subject: [PATCH] ci improvements --- .woodpecker/tools-wasm-pack-plugin.yml | 14 ++++++++++++++ tools/wasm-pack-plugin/Dockerfile | 5 +++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.woodpecker/tools-wasm-pack-plugin.yml b/.woodpecker/tools-wasm-pack-plugin.yml index f6c6ad2..b9820f3 100644 --- a/.woodpecker/tools-wasm-pack-plugin.yml +++ b/.woodpecker/tools-wasm-pack-plugin.yml @@ -1,4 +1,17 @@ pipeline: + build: + image: plugins/docker + settings: + dry_run: true + context: tools/wasm-pack-plugin + dockerfile: tools/wasm-pack-plugin/Dockerfile + when: + branch: + exclude: [master] + path: + include: + - tools/wasm-pack-plugin/* + - .woodpecker/tools-wasm-pack-plugin.yml build and publish: image: plugins/docker settings: @@ -12,6 +25,7 @@ pipeline: context: tools/wasm-pack-plugin dockerfile: tools/wasm-pack-plugin/Dockerfile when: + branch: master path: include: - tools/wasm-pack-plugin/* diff --git a/tools/wasm-pack-plugin/Dockerfile b/tools/wasm-pack-plugin/Dockerfile index 7bbece5..15f733d 100644 --- a/tools/wasm-pack-plugin/Dockerfile +++ b/tools/wasm-pack-plugin/Dockerfile @@ -1,5 +1,6 @@ FROM rust:alpine +COPY plugin.sh /bin/ RUN apk add --no-cache \ npm \ musl-dev \ @@ -10,7 +11,7 @@ RUN apk add --no-cache \ make \ && cargo install wasm-pack \ && rustup target add wasm32-unknown-unknown + && chmod +x /bin/plugin.sh -COPY plugin.sh /plugin.sh -ENTRYPOINT ["/plugin.sh"] \ No newline at end of file +ENTRYPOINT /bin/plugin.sh \ No newline at end of file