-
-
Notifications
You must be signed in to change notification settings - Fork 260
Expand file tree
/
Copy pathaction.yml
More file actions
21 lines (21 loc) · 725 Bytes
/
action.yml
File metadata and controls
21 lines (21 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: "Podman Setup"
description: "Sets up Podman"
runs:
using: "composite"
steps:
- name: Podman setup
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y --only-upgrade podman golang-github-containers-common
dpkg-query -W podman golang-github-containers-common
mkdir -p ~/.config/containers
cat <<EOF > ~/.config/containers/containers.conf
[engine]
runtime = "runc"
EOF
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