mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
ci: add Dockerfile and deploy workflow
This commit is contained in:
parent
2ccb18345f
commit
9d4688e5ed
2 changed files with 26 additions and 0 deletions
10
.github/workflows/deploy.yaml
vendored
Normal file
10
.github/workflows/deploy.yaml
vendored
Normal 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
16
Dockerfile
Normal 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"]
|
||||
Loading…
Reference in a new issue