Install new crun version on debian/ubuntu
See: actions/runner-images#9425
This commit is contained in:
parent
72c100efd8
commit
499b33be2e
|
|
@ -0,0 +1,27 @@
|
||||||
|
---
|
||||||
|
name: Setup environment
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
# See: https://github.com/actions/runner-images/issues/9425
|
||||||
|
- name: Patch crun
|
||||||
|
shell: bash
|
||||||
|
if: >
|
||||||
|
startsWith(matrix.distro, 'debian') ||
|
||||||
|
startsWith(matrix.distro, 'ubuntu')
|
||||||
|
run: |
|
||||||
|
curl -Lo ./crun https://github.com/containers/crun/releases/download/1.14.4/crun-1.14.4-linux-amd64
|
||||||
|
sudo install crun /usr/bin/crun
|
||||||
|
# This is necessary on GH Actions to allow running systemd in rootless containers
|
||||||
|
# see: https://github.com/actions/virtual-environments/issues/3536
|
||||||
|
# see: https://github.com/ansible-community/molecule/discussions/3155
|
||||||
|
- name: Start systemd user service
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
loginctl enable-linger $(whoami)
|
||||||
|
sleep 1
|
||||||
|
- name: Install requirements
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
python3 -m pip install --upgrade pip
|
||||||
|
python3 -m pip install -r requirements.txt
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
name: Cluster
|
name: Cluster
|
||||||
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
|
|
@ -48,17 +49,8 @@ jobs:
|
||||||
- alpine-3.19
|
- alpine-3.19
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install requirements
|
- name: Setup environment
|
||||||
run: |
|
uses: ./.github/workflows/composite-action
|
||||||
python3 -m pip install --upgrade pip
|
|
||||||
python3 -m pip install -r requirements.txt
|
|
||||||
# This is necessary on GH Actions to allow running systemd in rootless containers
|
|
||||||
# see: https://github.com/actions/virtual-environments/issues/3536
|
|
||||||
# see: https://github.com/ansible-community/molecule/discussions/3155
|
|
||||||
- name: Start systemd user service
|
|
||||||
run: |
|
|
||||||
loginctl enable-linger $(whoami)
|
|
||||||
sleep 1
|
|
||||||
- name: Run molecule
|
- name: Run molecule
|
||||||
run: molecule test -s cluster
|
run: molecule test -s cluster
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
|
|
@ -52,17 +52,8 @@ jobs:
|
||||||
mariadb-version: 10.6
|
mariadb-version: 10.6
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install requirements
|
- name: Setup environment
|
||||||
run: |
|
uses: ./.github/workflows/composite-action
|
||||||
python3 -m pip install --upgrade pip
|
|
||||||
python3 -m pip install -r requirements.txt
|
|
||||||
# This is necessary on GH Actions to allow running systemd in rootless containers
|
|
||||||
# see: https://github.com/actions/virtual-environments/issues/3536
|
|
||||||
# see: https://github.com/ansible-community/molecule/discussions/3155
|
|
||||||
- name: Start systemd user service
|
|
||||||
run: |
|
|
||||||
loginctl enable-linger $(whoami)
|
|
||||||
sleep 1
|
|
||||||
- name: Run molecule
|
- name: Run molecule
|
||||||
run: molecule test -s cluster
|
run: molecule test -s cluster
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
|
|
@ -52,17 +52,8 @@ jobs:
|
||||||
- alpine-3.19
|
- alpine-3.19
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install requirements
|
- name: Setup environment
|
||||||
run: |
|
uses: ./.github/workflows/composite-action
|
||||||
python3 -m pip install --upgrade pip
|
|
||||||
python3 -m pip install -r requirements.txt
|
|
||||||
# This is necessary on GH Actions to allow running systemd in rootless containers
|
|
||||||
# see: https://github.com/actions/virtual-environments/issues/3536
|
|
||||||
# see: https://github.com/ansible-community/molecule/discussions/3155
|
|
||||||
- name: Start systemd user service
|
|
||||||
run: |
|
|
||||||
loginctl enable-linger $(whoami)
|
|
||||||
sleep 1
|
|
||||||
- name: Run molecule
|
- name: Run molecule
|
||||||
run: molecule test
|
run: molecule test
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
|
|
@ -93,17 +93,8 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install requirements
|
- name: Setup environment
|
||||||
run: |
|
uses: ./.github/workflows/composite-action
|
||||||
python3 -m pip install --upgrade pip
|
|
||||||
python3 -m pip install -r requirements.txt
|
|
||||||
# This is necessary on GH Actions to allow running systemd in rootless containers
|
|
||||||
# see: https://github.com/actions/virtual-environments/issues/3536
|
|
||||||
# see: https://github.com/ansible-community/molecule/discussions/3155
|
|
||||||
- name: Start systemd user service
|
|
||||||
run: |
|
|
||||||
loginctl enable-linger $(whoami)
|
|
||||||
sleep 1
|
|
||||||
- name: Run molecule
|
- name: Run molecule
|
||||||
run: molecule test
|
run: molecule test
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue