Merge pull request #536 from runcom/fix-cni-ci
Fix CI because of CNI repo move
This commit is contained in:
commit
6a24e49b57
2 changed files with 9 additions and 7 deletions
|
@ -56,11 +56,11 @@ RUN set -x \
|
||||||
&& rm -rf "$GOPATH"
|
&& rm -rf "$GOPATH"
|
||||||
|
|
||||||
# Install CNI plugins
|
# Install CNI plugins
|
||||||
ENV CNI_COMMIT d4bbce1865270cd2d2be558d6a23e63d314fe769
|
ENV CNI_COMMIT dcf7368eeab15e2affc6256f0bb1e84dd46a34de
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& export GOPATH="$(mktemp -d)" \
|
&& export GOPATH="$(mktemp -d)" \
|
||||||
&& git clone https://github.com/containernetworking/cni.git "$GOPATH/src/github.com/containernetworking/cni" \
|
&& git clone https://github.com/containernetworking/plugins.git "$GOPATH/src/github.com/containernetworking/plugins" \
|
||||||
&& cd "$GOPATH/src/github.com/containernetworking/cni" \
|
&& cd "$GOPATH/src/github.com/containernetworking/plugins" \
|
||||||
&& git checkout -q "$CNI_COMMIT" \
|
&& git checkout -q "$CNI_COMMIT" \
|
||||||
&& ./build.sh \
|
&& ./build.sh \
|
||||||
&& mkdir -p /opt/cni/bin \
|
&& mkdir -p /opt/cni/bin \
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
remote_user: root
|
remote_user: root
|
||||||
vars:
|
vars:
|
||||||
xunit: false
|
xunit: false
|
||||||
|
cni_commit: dcf7368eeab15e2affc6256f0bb1e84dd46a34de
|
||||||
tasks:
|
tasks:
|
||||||
- name: Update all packages
|
- name: Update all packages
|
||||||
yum:
|
yum:
|
||||||
|
@ -140,8 +141,9 @@
|
||||||
poll: 10
|
poll: 10
|
||||||
- name: git clone cni repo
|
- name: git clone cni repo
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/containernetworking/cni
|
repo: https://github.com/containernetworking/plugins
|
||||||
dest: /root/src/github.com/containernetworking/cni
|
dest: /root/src/github.com/containernetworking/plugins
|
||||||
|
version: "{{ cni_commit }}"
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
- name: Git fetch the PR
|
- name: Git fetch the PR
|
||||||
|
@ -174,9 +176,9 @@
|
||||||
- name: Build cni networking
|
- name: Build cni networking
|
||||||
shell: ./build.sh
|
shell: ./build.sh
|
||||||
args:
|
args:
|
||||||
chdir: /root/src/github.com/containernetworking/cni
|
chdir: /root/src/github.com/containernetworking/plugins
|
||||||
- name: cp bin to cni bin dir
|
- name: cp bin to cni bin dir
|
||||||
shell: cp /root/src/github.com/containernetworking/cni/bin/* /opt/cni/bin
|
shell: cp /root/src/github.com/containernetworking/plugins/bin/* /opt/cni/bin
|
||||||
- name: curl ocid bridge conf file for cni networking
|
- name: curl ocid bridge conf file for cni networking
|
||||||
get_url:
|
get_url:
|
||||||
url: https://raw.githubusercontent.com/kubernetes-incubator/cri-o/master/contrib/cni/10-ocid-bridge.conf
|
url: https://raw.githubusercontent.com/kubernetes-incubator/cri-o/master/contrib/cni/10-ocid-bridge.conf
|
||||||
|
|
Loading…
Reference in a new issue