-
-
Notifications
You must be signed in to change notification settings - Fork 257
Expand file tree
/
Copy pathaction.yml
More file actions
17 lines (17 loc) · 1 KB
/
action.yml
File metadata and controls
17 lines (17 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
name: "Podman Setup"
description: "Sets up Podman"
runs:
using: "composite"
steps:
- name: Podman setup
shell: bash
run: |
curl -fsSL "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_$(lsb_release -rs)/Release.key" | gpg --dearmor | sudo tee /etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg > /dev/null
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg] https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_$(lsb_release -rs)/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list > /dev/null
sudo apt-get update
sudo apt-get -y install podman
systemctl enable --now --user podman podman.socket
podman info
echo "DOCKER_HOST=unix://${XDG_RUNTIME_DIR}/podman/podman.sock" >> $GITHUB_ENV
echo "CI_ROOTLESS=true" >> $GITHUB_ENV
echo "CI_PODMAN=true" >> $GITHUB_ENV