-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.yml
71 lines (59 loc) · 1.5 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#
# Rebuild and publish our base Docker images for OCaml once a week.
#
version: 2.1
jobs:
build-and-push:
docker:
- image: circleci/buildpack-deps:stretch
steps:
- checkout
# Work around "no docker within no docker".
- setup_remote_docker
- run:
name: Build
command: make build
- run:
name: Login
command: ./.circleci/docker-login
- run:
name: Push
command: make push
build-only:
docker:
- image: circleci/buildpack-deps:stretch
steps:
- checkout
# Work around "no docker within no docker".
- setup_remote_docker
- run:
name: Build
command: make build
workflows:
version: 2
build-on-push:
jobs:
- build-only
build-and-push-weekly:
# Rebuild periodically rather than based on git changes.
triggers:
- schedule:
# Run at 10:00 every Wednesday, UTC.
cron: "0 10 * * 3"
filters:
branches:
only:
- master
- mjambon
jobs:
- build-and-push:
# Use the CircleCI context that holds our DockerHub login
# credentials and exposes them as environment variables
# DOCKERHUB_USER and DOCKERHUB_PASS.
context: dockerhub
# Run only on these branches (each pushing different images)
filters:
branches:
only:
- master
- mjambon