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
|
||||
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
|
|
@ -48,17 +49,8 @@ jobs:
|
|||
- alpine-3.19
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install requirements
|
||||
run: |
|
||||
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: Setup environment
|
||||
uses: ./.github/workflows/composite-action
|
||||
- name: Run molecule
|
||||
run: molecule test -s cluster
|
||||
env:
|
||||
|
|
|
|||
|
|
@ -52,17 +52,8 @@ jobs:
|
|||
mariadb-version: 10.6
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install requirements
|
||||
run: |
|
||||
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: Setup environment
|
||||
uses: ./.github/workflows/composite-action
|
||||
- name: Run molecule
|
||||
run: molecule test -s cluster
|
||||
env:
|
||||
|
|
|
|||
|
|
@ -52,17 +52,8 @@ jobs:
|
|||
- alpine-3.19
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install requirements
|
||||
run: |
|
||||
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: Setup environment
|
||||
uses: ./.github/workflows/composite-action
|
||||
- name: Run molecule
|
||||
run: molecule test
|
||||
env:
|
||||
|
|
|
|||
|
|
@ -93,17 +93,8 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install requirements
|
||||
run: |
|
||||
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: Setup environment
|
||||
uses: ./.github/workflows/composite-action
|
||||
- name: Run molecule
|
||||
run: molecule test
|
||||
env:
|
||||
|
|
|
|||
Loading…
Reference in New Issue