Add plugin build recipe
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2024-09-24 02:10:03 -05:00
parent c18ae34880
commit 854869ee89
3 changed files with 18 additions and 0 deletions

1
.dockerignore Normal file
View File

@@ -0,0 +1 @@
target

7
.woodpecker.yml Executable file
View File

@@ -0,0 +1,7 @@
pipeline:
build-plugin:
image: docker
commands:
- docker build -t historian-plugin .
volumes:
- /var/run/docker.sock:/var/run/docker.sock

10
Dockerfile Executable file
View File

@@ -0,0 +1,10 @@
FROM rust:1-bookworm
WORKDIR /usr/src/historian
COPY . .
RUN cargo install --path .
ENV INPUT=.
ENV OUTPUT=output
CMD historian $INPUT --render-to $OUTPUT