Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Commit

Permalink
Install newer crun
Browse files Browse the repository at this point in the history
  • Loading branch information
amezin committed Mar 4, 2024
1 parent 0a39cce commit c14e715
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ jobs:
timeout-minutes: 15
env:
IMAGE: ghcr.io/${{ github.repository }}/${{ matrix.image }}
# renovate: datasource=github-tags depName=containers/crun
CRUN_VER: '1.11.2'
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -88,6 +90,20 @@ jobs:
${{ env.IMAGE }}:master
cache-to: type=inline

- run: |
# https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/
mkdir -p "${HOME}/.local/bin"
curl -L "https://github.com/containers/crun/releases/download/${CRUN_VER}/crun-${CRUN_VER}-linux-amd64" -o "${HOME}/.local/bin/crun"
chmod +x "${HOME}/.local/bin/crun"
mkdir -p "${HOME}/.config/containers"
cat << EOF > "${HOME}/.config/containers/containers.conf"
[engine.runtimes]
crun = [
"${HOME}/.local/bin/crun",
"/usr/bin/crun"
]
EOF
- run: podman pull docker-daemon:${{ steps.docker_build.outputs.imageid }} | tee .podman-image-id

- run: DEBIAN_FRONTEND=noninteractive sudo apt-get install -y --no-install-recommends x11-utils
Expand Down
13 changes: 12 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,16 @@
},
"groupName": "Base images"
},
"automerge": true
"automerge": true,
"customManagers": [
{
"customType": "regex",
"fileMatch": [
"^\\.github/workflows/.+\\.ya?ml"
],
"matchStrings": [
"#\\s*renovate:\\s+datasource=(?<datasource>[^\\s]+)\\s+depName=(?<depName>[^\\s]+)(\\s+(lookupName|packageName)=(?<packageName>[^\\s]+))?(\\s+versioning=(?<versioning>[^\\s]+))?\\n\\s*\\w+\\s*:\\s*[\"']?(?<currentValue>[^\\s\"']+)[\"']?(\\s|$)"
]
}
]
}

0 comments on commit c14e715

Please sign in to comment.