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