Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/beaker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ on:
default: container_podman
required: false
type: string
podman_rootful:
description: If true use the rootful podman socket.
default: false
required: false
type: boolean
install_vagrant_dependencies:
description: When true and beaker_hypervisor==vagrant_libvirt, we will install vagrant + libvirt
default: true
Expand Down Expand Up @@ -178,6 +183,13 @@ jobs:
run: |
systemctl start --user podman.socket
echo "DOCKER_HOST=unix:///run/user/$(id -u)/podman/podman.sock" >> "$GITHUB_ENV"
- if: ${{ inputs.podman_rootful }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we skip the action above if rootful is true? We don't need a system- and a user- service

run: |
sudo systemctl start podman.socket
sudo chmod 0777 /run/podman
sudo chmod 0666 /run/podman/podman.sock
echo "DOCKER_HOST=unix:///run/podman/podman.sock" >> "$GITHUB_ENV"
echo "CONTAINER_HOST=unix:///run/podman/podman.sock" >> "$GITHUB_ENV"
- name: Setup libvirt for Vagrant
if: ${{ inputs.beaker_hypervisor == 'vagrant_libvirt' && inputs.install_vagrant_dependencies == true }}
run: |
Expand Down