Skip to content

Commit

Permalink
Merge pull request cri-o#8006 from sohankunkerkar/force-clone-crun
Browse files Browse the repository at this point in the history
contrib/test/ci: use force_clone for crun to avoid outdated codebase
  • Loading branch information
openshift-merge-bot[bot] committed Apr 12, 2024
2 parents c7fc6a2 + 0836564 commit 57b020a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrib/test/ci/build/cri-tools.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---
- name: Remove existing cri-tools directory
file:
path: "{{ ansible_env.GOPATH }}/src/github.com/kubernetes-sigs/cri-tools"
state: absent

- name: clone cri-tools source repo
git:
Expand Down
5 changes: 5 additions & 0 deletions contrib/test/ci/build/crun.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
---
- name: Remove existing crun directory
file:
path: "{{ ansible_env.GOPATH }}/src/github.com/containers/crun"
state: absent

- name: clone crun source repo
git:
repo: "https://github.com/containers/crun.git"
dest: "{{ ansible_env.GOPATH }}/src/github.com/containers/crun"
force: "{{ force_clone | default(False) | bool}}"
version: "{{ crun_git_version }}"

- name: Install crun dependencies
Expand Down
2 changes: 2 additions & 0 deletions contrib/test/ci/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

- name: clone build and install crun
include_tasks: "build/crun.yml"
vars:
force_clone: true

- name: install Kata Containers
include_tasks: "build/kata.yml"
Expand Down

0 comments on commit 57b020a

Please sign in to comment.