Skip to content

Commit

Permalink
Install new crun version on debian/ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
fauust committed Mar 11, 2024
1 parent 72c100e commit 499b33b
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 44 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/composite-action/action.yml
Original file line number Diff line number Diff line change
@@ -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
14 changes: 3 additions & 11 deletions .github/workflows/test_cluster.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
name: Cluster


on:
push:
paths:
Expand Down Expand Up @@ -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:
Expand Down
13 changes: 2 additions & 11 deletions .github/workflows/test_cluster_mdbf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
13 changes: 2 additions & 11 deletions .github/workflows/test_default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
13 changes: 2 additions & 11 deletions .github/workflows/test_mdbf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 499b33b

Please sign in to comment.