mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
+10
-6
@@ -16,13 +16,17 @@ task:
|
|||||||
RPMS: gcc git-core iptables jq glibc-static libseccomp-devel make criu fuse-sshfs container-selinux
|
RPMS: gcc git-core iptables jq glibc-static libseccomp-devel make criu fuse-sshfs container-selinux
|
||||||
# yamllint disable rule:key-duplicates
|
# yamllint disable rule:key-duplicates
|
||||||
matrix:
|
matrix:
|
||||||
DISTRO: almalinux-8
|
- DISTRO: almalinux-8
|
||||||
DISTRO: almalinux-9
|
IMAGE_PROJECT: almalinux-cloud
|
||||||
|
- DISTRO: almalinux-9
|
||||||
|
IMAGE_PROJECT: almalinux-cloud
|
||||||
|
- DISTRO: centos-stream-10
|
||||||
|
IMAGE_PROJECT: centos-cloud
|
||||||
|
|
||||||
name: ci / $DISTRO
|
name: ci / $DISTRO
|
||||||
|
|
||||||
compute_engine_instance:
|
compute_engine_instance:
|
||||||
image_project: almalinux-cloud
|
image_project: $IMAGE_PROJECT
|
||||||
image: family/$DISTRO
|
image: family/$DISTRO
|
||||||
platform: linux
|
platform: linux
|
||||||
cpu: 4
|
cpu: 4
|
||||||
@@ -33,7 +37,7 @@ task:
|
|||||||
*-8)
|
*-8)
|
||||||
dnf config-manager --set-enabled powertools # for glibc-static
|
dnf config-manager --set-enabled powertools # for glibc-static
|
||||||
;;
|
;;
|
||||||
*-9)
|
*-9|*-10)
|
||||||
dnf config-manager --set-enabled crb # for glibc-static
|
dnf config-manager --set-enabled crb # for glibc-static
|
||||||
dnf -y install epel-release # for fuse-sshfs
|
dnf -y install epel-release # for fuse-sshfs
|
||||||
# Delegate all cgroup v2 controllers to rootless user via --systemd-cgroup.
|
# Delegate all cgroup v2 controllers to rootless user via --systemd-cgroup.
|
||||||
@@ -46,9 +50,9 @@ task:
|
|||||||
# Work around dnf mirror failures by retrying a few times.
|
# Work around dnf mirror failures by retrying a few times.
|
||||||
for i in $(seq 0 2); do
|
for i in $(seq 0 2); do
|
||||||
sleep $i
|
sleep $i
|
||||||
yum install -y --setopt=install_weak_deps=False --setopt=tsflags=nodocs $RPMS && break
|
dnf install -y --setopt=install_weak_deps=False --setopt=tsflags=nodocs $RPMS && break
|
||||||
done
|
done
|
||||||
[ $? -eq 0 ] # fail if yum failed
|
[ $? -eq 0 ] # fail if dnf failed
|
||||||
|
|
||||||
case $DISTRO in
|
case $DISTRO in
|
||||||
*-8)
|
*-8)
|
||||||
|
|||||||
Reference in New Issue
Block a user