Skip to content

Commit

Permalink
CI: switch away from GHA to Cirrus CI
Browse files Browse the repository at this point in the history
Signed-off-by: Akihiro Suda <[email protected]>
  • Loading branch information
AkihiroSuda committed Jul 8, 2021
1 parent 0af586e commit f63902e
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 70 deletions.
53 changes: 53 additions & 0 deletions .cirrus.yml
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
70 changes: 0 additions & 70 deletions .github/workflows/main.yaml

This file was deleted.

0 comments on commit f63902e

Please sign in to comment.