-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: switch away from GHA to Cirrus CI
Signed-off-by: Akihiro Suda <[email protected]>
- Loading branch information
1 parent
0af586e
commit 3bf4861
Showing
3 changed files
with
58 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# We use Vagrant to prepare cgroup v2 env. | ||
|
||
compute_engine_instance: | ||
image_project: cirrus-images | ||
image: family/docker-kvm | ||
platform: linux | ||
nested_virtualization: true | ||
# CPU limit: `16 / NTASK`: see https://cirrus-ci.org/faq/#are-there-any-limits | ||
cpu: 8 | ||
# Memory limit: `4GB * NCPU` | ||
memory: 32G | ||
|
||
task_template: &TASK_TEMPLATE | ||
timeout_in: 30m | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
HOME: /root | ||
DOCKER_BUILDKIT: 1 | ||
info_script: | ||
- uname -a | ||
- cat /proc/cpuinfo | ||
- docker info | ||
build_script: | ||
- make | ||
install_libvirt_vagrant_script: | ||
- apt-get update | ||
- apt-get install -y libvirt-daemon libvirt-daemon-system vagrant vagrant-libvirt | ||
- systemctl enable --now libvirtd | ||
vagrant_cache: | ||
fingerprint_script: uname -s ; cat Vagrantfile | ||
folder: /root/.vagrant.d | ||
vagrant_up_script: | ||
- vagrant up | ||
- mkdir -p -m 0700 /root/.ssh | ||
- vagrant ssh-config >> /root/.ssh/config | ||
|
||
single_node_task: | ||
<< : *TASK_TEMPLATE | ||
name: "Single node" | ||
containerd_test_script: | ||
- ssh default /vagrant/hack/smoketest-binaries.sh --cri=containerd | ||
crio_test_script: | ||
- ssh default /vagrant/hack/smoketest-binaries.sh --cri=crio | ||
|
||
multi_node_task: | ||
<< : *TASK_TEMPLATE | ||
name: "Multi node with Flannel (Docker Compose)" | ||
install_docker_script: | ||
- ssh default sudo dnf install -y moby-engine docker-compose make | ||
- ssh default sudo usermod -aG docker vagrant | ||
- ssh default sudo systemctl enable --now docker | ||
load_image_script: | ||
- docker save ghcr.io/rootless-containers/usernetes:latest | ssh default docker load | ||
debug_background_script: | ||
- while true; do ssh default docker-compose --project-directory /vagrant logs -f; sleep 3; done | ||
compose_test_script: | ||
- ssh default /vagrant/hack/smoketest-docker-compose.sh |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters