ci improvements
This commit is contained in:
parent
7a482b6873
commit
38a6a1174a
|
@ -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/*
|
||||
|
|
|
@ -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"]
|
||||
ENTRYPOINT /bin/plugin.sh
|
Loading…
Reference in New Issue