-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.yml
99 lines (86 loc) · 2.48 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
---
# https://circleci.com/docs/docker
version: 2.1
workflows:
commits:
jobs:
- build
# NOTE: autobuild was previously triggered via an API call
# from my VPS in Digital Ocean.
#
# Use `git checkout 1a5095c' to view the old scripts.
#
# CircleCI schedule does NOT support cron step values (/).
awscli_stable:
jobs:
- build:
awscli_version: "latest"
autobuild: "true"
triggers:
- schedule:
cron: '3 * * * *'
# ^ ^ ^ ^ ^
# | | | | |
# | | | | +-- Day of the week (0-6 with 0=Sunday)
# | | | +---- Month of the year (1-12)
# | | +------ Day of the month (1-31)
# | +-------- Hour (0-23)
# +---------- Minute (0-59)
filters:
branches:
only:
- master
awscli_v2:
jobs:
- build:
awscli_version: "2.0.0dev0"
triggers:
- schedule:
cron: '0 1 * * *'
# ^ ^ ^ ^ ^
# | | | | |
# | | | | +-- Day of the week (0-6 with 0=Sunday)
# | | | +---- Month of the year (1-12)
# | | +------ Day of the month (1-31)
# | +-------- Hour (0-23)
# +---------- Minute (0-59)
filters:
branches:
only:
- master
jobs:
build:
parameters:
autobuild:
description: "Should we check to see if an image is already up-to-date?"
type: string
default: "false"
awscli_version:
description: "Which version of awscli should we install?"
type: string
default: "latest"
docker:
# https://github.com/jumanjihouse/cci/pulls?q=is%3Apr+is%3Aclosed
- image: jumanjiman/cci:20180923T1521-git-a75cb83
working_directory: ~/wtf/
steps:
- setup_remote_docker
- checkout
- run:
name: Prepare the local dev environment
command: |
ci/bootstrap
- run:
name: Build the image
command: |
VERSION='<< parameters.awscli_version >>' AUTOBUILD='<< parameters.autobuild >>' ci/build
- run:
name: Test the image
command: |
ci/test
- deploy:
name: Deploy from master branch
command: |
if [[ ${CIRCLE_BRANCH} = master ]] && [[ -z ${CIRCLE_PR_NUMBER} ]]; then
ci/publish
fi