File tree Expand file tree Collapse file tree
.github/actions/podman-setup Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 - name : Install Podman
77 uses : redhat-actions/podman-install@5bc2ecc87c737059124c295845be51ee7297fb89
88 with :
9- ubuntu-repository : kubic
10- ubuntu-version : " 24.04"
9+ ubuntu-repository : questing
1110
1211 - name : Configure Podman
1312 shell : bash
1413 run : |
15- sudo systemctl enable --now podman.socket
14+ PODMAN_VERSION="$(podman --version | awk '{print $3}')"
15+ if [[ "${PODMAN_VERSION}" != 5.* ]]; then
16+ echo "Expected Podman 5.x, got ${PODMAN_VERSION}"
17+ exit 1
18+ fi
19+
20+ sudo mkdir -p /etc/systemd/system/podman.socket.d
21+ printf '[Socket]\nSocketUser=%s\nSocketMode=0600\n' "$(id -un)" | sudo tee /etc/systemd/system/podman.socket.d/runner.conf
22+ sudo systemctl daemon-reload
23+ sudo systemctl enable podman.socket
24+ sudo systemctl restart podman.socket
1625 podman --url=unix:///run/podman/podman.sock info
1726 echo "DOCKER_HOST=unix:///run/podman/podman.sock" >> $GITHUB_ENV
1827 echo "CI_PODMAN=true" >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments