-
Notifications
You must be signed in to change notification settings - Fork 111
/
Copy pathconfig.yml
82 lines (80 loc) · 1.96 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
version: 2
jobs:
build_branch:
working_directory: /app
docker:
- image: docker:17.05.0-ce-git
steps:
- checkout
- setup_remote_docker
- run:
name: Install dependencies
command: |
apk add --no-cache \
py-pip \
curl \
curl-dev
pip install \
docker-compose
- run:
name: Build Branch Images
command: |
set +o pipefail
sh buildscripts/buildSupportedAlpineImages.sh
- run:
name: Test Branch Images
command: |
sh buildscripts/testSupportedAlpineImages.sh
build_releases:
working_directory: /app
docker:
- image: docker:17.05.0-ce-git
steps:
- checkout
- setup_remote_docker
- run:
name: Install dependencies
command: |
apk add --no-cache \
py-pip \
curl \
curl-dev
pip install \
docker-compose
- run:
name: Build Docker Release Images
command: |
set +o pipefail
sh buildscripts/buildSupportedAlpineImages.sh
- run:
name: Test Docker Release Images
command: |
sh buildscripts/testSupportedAlpineImages.sh
- run:
name: Push Dockerhub Release Images
command: |
docker login -u ${DOCKER_USER} -p ${DOCKER_PASS}
sh buildscripts/releaseSupportedAlpineImages.sh
workflows:
version: 2
build_pipeline:
jobs:
- build_releases:
filters:
branches:
only: master
- build_branch:
filters:
branches:
ignore:
- master
nightly:
triggers:
- schedule:
cron: "0 1 * * 1"
filters:
branches:
only:
- master
jobs:
- build_releases