-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
53 lines (47 loc) · 1.56 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
version: 2.1
jobs:
deploy:
description: Build the docker image and push it to the docker hub registry.
parameters:
cmake_version:
type: string
gcc_version:
type: integer
machine: true
steps:
- checkout
# login to docker hub registry
- run: echo "$DOCKER_PASS" | docker login --username $DOCKER_USER --password-stdin
# build the application image
- run: ./scripts/build.sh -c << parameters.cmake_version >> -g << parameters.gcc_version >> -u $DOCKER_USER .
# deploy the image
- run: ./scripts/push.sh -c << parameters.cmake_version >> -g << parameters.gcc_version >> -u $DOCKER_USER
workflows:
version: 2.1
nightly:
triggers:
- schedule:
cron: "0 0 * * *"
filters:
branches:
only:
- master
jobs:
- deploy:
name: "deploy-gcc<< matrix.gcc_version >>-cmake:<< matrix.cmake_version >>"
filters:
branches:
only: 'master'
matrix:
parameters:
cmake_version: ["3.18.0", "3.17.3", "3.16.8", "3.15.7", "3.14.7", "3.13.5", "3.12.4", "3.11.4", "3.10.3", "3.9.6", "3.8.2", "3.7.2", "3.6.3"]
gcc_version: [10, 9, 8, 7, 6]
exclude:
- cmake_version: "3.6.3"
gcc_version: 10
- cmake_version: "3.6.3"
gcc_version: 9
- cmake_version: "3.6.3"
gcc_version: 8
- cmake_version: "3.6.3"
gcc_version: 7