-
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 f63902e
Showing
2 changed files
with
53 additions
and
70 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,53 @@ | ||
# 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: 4 | ||
memory: 16G | ||
|
||
task_template: &TASK_TEMPLATE | ||
timeout_in: 60m | ||
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 | ||
- vagrant ssh-config > /tmp/vagrant-ssh-config | ||
|
||
cri_task: | ||
<< : *TASK_TEMPLATE | ||
env: | ||
# yamllint disable rule:key-duplicates | ||
matrix: | ||
CRI: containerd | ||
CRI: crio | ||
test_script: | ||
- ssh -F /tmp/vagrant-ssh-config default /vagrant/hack/smoketest-binaries.sh --cri=$CRI | ||
|
||
compose_task: | ||
<< : *TASK_TEMPLATE | ||
install_docker_script: | ||
- ssh -F /tmp/vagrant-ssh-config default sudo dnf install -y moby-engine docker-compose make | ||
- ssh -F /tmp/vagrant-ssh-config default sudo usermod -aG docker vagrant | ||
- ssh -F /tmp/vagrant-ssh-config default sudo systemctl enable --now docker | ||
load_image_script: | ||
- docker save ghcr.io/rootless-containers/usernetes:latest | ssh -F /tmp/vagrant-ssh-config default docker load | ||
test_script: | ||
- ssh -F /tmp/vagrant-ssh-config default /vagrant/hack/smoketest-docker-compose.sh |
This file was deleted.
Oops, something went wrong.