-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
56 lines (50 loc) · 1.21 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
version: 2.1
default:
environment: &envvars
CONTAINER_NAME: quay.io/redsift/sandbox-javascript
executors:
dockexec:
shell: /bin/bash
environment: *envvars
docker:
- image: cibuilds/docker:19.03.2
baseexec:
shell: /bin/bash
environment: *envvars
docker:
- image: cibuilds/base:2019.03
commands:
v_build:
parameters:
nv:
type: string
default: '18.17.1'
islatest:
type: boolean
default: false
steps:
- checkout
- setup_remote_docker
- run: docker login -u $QUAY_USER -p $QUAY_PASS quay.io
- run: ./circle/docker_build << parameters.nv >> << parameters.islatest >>
- run: ./circle/gen_testing_dockerfile << parameters.nv >>
- run: ./circle/docker_test << parameters.nv >>
- deploy:
command: docker push $CONTAINER_NAME
jobs:
build_v18:
executor: dockexec
steps:
- v_build:
nv: '18.17.1'
islatest: true
build_placeholder:
executor: dockexec
steps:
- run: echo "Create a job for each extra version with the command defined above"
workflows:
version: 2.1
build-and-deploy:
jobs:
- build_v18:
context: org-global