Skip to content

Commit bdd7dce

Browse files
committed
Add OpenLab CI configuration
This patch adds the OpenLab CI configuration to enable the support for arm build in OpenLab. After this, each pull request in containerd will trigger the containerd-arm64-build job which verified the arm build on OpenLab ARM cluster. Related: #2901 Signed-off-by: Yikun Jiang <[email protected]>
1 parent 475619c commit bdd7dce

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

.zuul.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
- project:
2+
name: containerd/containerd
3+
check:
4+
jobs:
5+
- containerd-build-arm64
6+
7+
- job:
8+
name: containerd-build-arm64
9+
parent: init-test
10+
description: |
11+
Containerd build in openlab cluster.
12+
run: .zuul/playbooks/containerd-build/run.yaml
13+
nodeset: ubuntu-xenial-arm64
14+
voting: false
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
- hosts: all
2+
become: yes
3+
roles:
4+
- role: config-golang
5+
arch: arm64
6+
tasks:
7+
- name: Build containerd
8+
shell:
9+
cmd: |
10+
set -xe
11+
apt-get update
12+
apt-get install -y btrfs-tools libseccomp-dev git pkg-config
13+
14+
make | tee $LOGS_PATH/make.txt
15+
make test | tee $LOGS_PATH/make_test.txt
16+
17+
cp -r ./bin $RESULTS_PATH
18+
chdir: '{{ zuul.project.src_dir }}'
19+
executable: /bin/bash
20+
environment: '{{ global_env }}'

0 commit comments

Comments
 (0)