Added a Dockerfile and a CI pipeline that builds and pushes ferris

This commit is contained in:
Martin Slot 2023-01-28 19:04:00 +01:00
parent 888539b8e5
commit d529394c99
3 changed files with 17 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/.idea/

10
.woodpecker.yml Normal file
View File

@ -0,0 +1,10 @@
pipeline:
build_api:
image: docker:20.10.23
commands:
- docker login $GIT_URI -p $GIT_PASS -u $GIT_USER
- DOCKER_BUILDKIT=1 docker build -t ferris:$CI_BUILD_NUMBER -t $GIT_URI/mslot/ferris:$CI_BUILD_NUMBER .
- docker push $GIT_URI/mslot/ferris:$CI_BUILD_NUMBER
secrets: [ git_uri, git_pass, git_user ]
volumes:
- /var/run/docker.sock:/var/run/docker.sock

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM rust:1.67.0-slim-buster
RUN cargo install trunk && rustup target add wasm32-unknown-unknown
WORKDIR /source
CMD ["build", "--release"]
ENTRYPOINT ["trunk"]