-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
28 lines (26 loc) · 1.09 KB
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
container:
dockerfile: ci/Dockerfile
additional_containers:
- name: redis
image: redis:5-alpine
port: 6379
test_task:
env:
COVERALLS_REPO_TOKEN: ENCRYPTED[7be54a8ef5fad54efdf6225353b8e584c48a9c3143df4af637e2da6573cc3450cffa2ed68d4db5fdb8ca7e4973390a54]
cargo_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat Cargo.lock
build_script: cargo build
test_script: cargo tarpaulin --coveralls $COVERALLS_REPO_TOKEN
before_cache_script: rm -rf $CARGO_HOME/registry/index
docker_builder:
name: Docker
only_if: $CIRRUS_REPO_OWNER == 'moonad' && $CIRRUS_BRANCH == 'master'
depends_on:
- test
env:
DOCKER_PASSWORD: ENCRYPTED[52023bdd085200e6b5f63d38603f986286071d67fd086911a5095acfb97f059d351f712151cd8960cd4194166eb7d8e5]
DOCKER_USERNAME: ENCRYPTED[cf10ba5722574346a40f76f93d9cfbe2859af429d3daf425077565ef885b41dfbd55b1274b6ef11667d555538480c016]
build_script: docker build --tag moonad/bitlog-server:latest .
login_script: docker login --username $DOCKER_USERNAME --password $DOCKER_PASSWORD
push_script: docker push moonad/bitlog-server:latest