Skip to content

Commit 50e3b12

Browse files
authored
Merge pull request #190 from Normo/ci-install-recent-podman-version
ci: install a recent podman version
2 parents 9f50c72 + e3f2197 commit 50e3b12

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,22 @@ jobs:
4848
- name: "Check out the codebase."
4949
uses: "actions/checkout@v4"
5050

51-
- name: "Enable lingering required for podman and systemd in GH Actions."
52-
run: | # Compare with https://github.com/eriksjolund/user-systemd-service-actions-workflow/blob/efe872924fd2dd35bb482544126ce751303e14c2/README.md
53-
sudo loginctl enable-linger $UID
54-
sleep 1
55-
5651
- name: "Prepare the job environment."
5752
uses: "./.github/workflows/prepare-action"
5853

54+
- name: "Install modern podman"
55+
run: |
56+
sudo mkdir -p /etc/apt/keyrings
57+
curl -fsSL https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/xUbuntu_$(lsb_release -rs)/Release.key \
58+
| gpg --dearmor \
59+
| sudo tee /etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg > /dev/null
60+
echo \
61+
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg]\
62+
https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/xUbuntu_$(lsb_release -rs)/ /" \
63+
| sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list > /dev/null
64+
sudo apt-get update -qq
65+
sudo apt-get -qq -y install podman
66+
5967
- name: "Run Molecule tests."
6068
run: "pipenv run molecule test"
6169
env:

0 commit comments

Comments
 (0)