forked from databacker/mysql-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
55 lines (54 loc) · 1.3 KB
/
config.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# circleci to build and test; deploy when on master
---
version: 2.1
jobs:
ci:
docker:
- image: alpine:3.10
steps:
- run:
name: Add dependencies
command: apk --update add make docker bash ca-certificates git
- checkout
- setup_remote_docker:
docker_layer_caching: true
version: 18.06.0-ce
# no need to install docker, as it is included in the above circleci/ruby image
- persist_to_workspace:
root: .
paths:
- .
- run:
name: build
command: make build
- run:
name: test
command: make test DEBUG=debug
deploy:
docker:
- image: alpine:3.10
steps:
- run:
name: Add dependencies
command: apk --update add make docker bash ca-certificates git
- setup_remote_docker:
docker_layer_caching: true
version: 18.06.0-ce
- attach_workspace:
at: .
- run:
name: push
command: |
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
make push
workflows:
version: 2
test-deploy:
jobs:
- ci
- deploy:
requires:
- ci
filters:
branches:
only: master