Skip to content

Commit c4ef512

Browse files
committed
add testcase to verify multi-trigger app
Signed-off-by: Rajat Jindal <[email protected]>
1 parent c60d1f6 commit c4ef512

File tree

14 files changed

+1430
-5
lines changed

14 files changed

+1430
-5
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM --platform=${BUILDPLATFORM} rust:1.73 AS build
2+
WORKDIR /opt/build
3+
COPY . .
4+
RUN rustup target add wasm32-wasi
5+
6+
WORKDIR /opt/build/spin-http-trigger
7+
RUN cargo build --target wasm32-wasi --release
8+
9+
WORKDIR /opt/build/spin-redis-trigger
10+
RUN cargo build --target wasm32-wasi --release
11+
12+
FROM scratch
13+
COPY --from=build /opt/build/spin-http-trigger/target/wasm32-wasi/release/spin_http_trigger.wasm .
14+
COPY --from=build /opt/build/spin-redis-trigger/target/wasm32-wasi/release/spin_redis_trigger.wasm .
15+
COPY --from=build /opt/build/spin.toml .
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
target/
2+
.spin/

0 commit comments

Comments
 (0)