ci: add Dockerfile and deploy workflow

This commit is contained in:
Luke Bennett 2021-06-15 11:02:47 +01:00
parent 2ccb18345f
commit 9d4688e5ed
No known key found for this signature in database
GPG key ID: A738E9C68D3BF31A
2 changed files with 26 additions and 0 deletions

10
.github/workflows/deploy.yaml vendored Normal file
View file

@ -0,0 +1,10 @@
name: Publish Staging
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

16
Dockerfile Normal file
View file

@ -0,0 +1,16 @@
FROM debian:latest
WORKDIR /ccash
RUN apt update && apt -y install build-essential g++ cmake protobuf-compiler libjsoncpp-dev uuid-dev openssl libssl-dev zlib1g-dev
COPY . .
RUN mkdir build
WORKDIR /ccash/build
RUN cmake ..
RUN make -j$(nprov)
CMD ["/ccash/build/bank", "AdminPassword", "10", "4"]