ci improvements
ci/woodpecker/push/tools-wasm-pack-plugin Pipeline failed Details
ci/woodpecker/push/wasm-o-x-rust unknown status Details

This commit is contained in:
Gleb Koval 2022-08-06 22:11:33 +00:00
parent 7a482b6873
commit 38a6a1174a
Signed by: cyclane
GPG Key ID: 15E168A8B332382C
2 changed files with 17 additions and 2 deletions

View File

@ -1,4 +1,17 @@
pipeline: 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: build and publish:
image: plugins/docker image: plugins/docker
settings: settings:
@ -12,6 +25,7 @@ pipeline:
context: tools/wasm-pack-plugin context: tools/wasm-pack-plugin
dockerfile: tools/wasm-pack-plugin/Dockerfile dockerfile: tools/wasm-pack-plugin/Dockerfile
when: when:
branch: master
path: path:
include: include:
- tools/wasm-pack-plugin/* - tools/wasm-pack-plugin/*

View File

@ -1,5 +1,6 @@
FROM rust:alpine FROM rust:alpine
COPY plugin.sh /bin/
RUN apk add --no-cache \ RUN apk add --no-cache \
npm \ npm \
musl-dev \ musl-dev \
@ -10,7 +11,7 @@ RUN apk add --no-cache \
make \ make \
&& cargo install wasm-pack \ && cargo install wasm-pack \
&& rustup target add wasm32-unknown-unknown && rustup target add wasm32-unknown-unknown
&& chmod +x /bin/plugin.sh
COPY plugin.sh /plugin.sh
ENTRYPOINT ["/plugin.sh"] ENTRYPOINT /bin/plugin.sh