From 9d4688e5ed2cd36f6b117b5ae5e821625e55cc44 Mon Sep 17 00:00:00 2001 From: Luke Bennett Date: Tue, 15 Jun 2021 11:02:47 +0100 Subject: [PATCH] ci: add Dockerfile and deploy workflow --- .github/workflows/deploy.yaml | 10 ++++++++++ Dockerfile | 16 ++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/deploy.yaml create mode 100644 Dockerfile diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..0c2e09f --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,10 @@ +name: Publish Staging +on: + push: + branches: + - main +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d7215c5 --- /dev/null +++ b/Dockerfile @@ -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"]