-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathci_matrix.yaml
54 lines (34 loc) · 1 KB
/
ci_matrix.yaml
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
---
job: ufm-hello-world-plugin
registry_host: harbor.mellanox.com
registry_path: /swx-storage/ci-demo
registry_auth: swx-storage
env:
plugin_dir: hello_world_plugin
plugin_name: ufm-plugin-hello-world
DOCKER_CLI_EXPERIMENTAL: enabled
kubernetes:
cloud: swx-k8s-spray
volumes:
- {mountPath: /var/run/docker.sock, hostPath: /var/run/docker.sock}
- {mountPath: /auto/UFM, hostPath: /auto/UFM }
runs_on_dockers:
- {file: '.ci/Dockerfile', arch: 'x86_64', name: 'plugin_worker', tag: 'latest'}
steps:
- name: Build Plugin
containerSelector: "{name: 'plugin_worker'}"
run: |
cd plugins/$plugin_dir/build
bash -x ./docker_build.sh latest /
ls -l /
cp /ufm-plugin* /auto/UFM/tmp/${JOB_NAME}/${BUILD_ID}/
parallel: true
pipeline_start:
run: |
mkdir -p /auto/UFM/tmp/${JOB_NAME}/${BUILD_ID}
pipeline_stop:
run: |
echo 'All done';
#sudo rm -rf /auto/UFM/tmp/${JOB_NAME}/${BUILD_ID}
# Fail job if one of the steps fails or continue
failFast: false