update workflow to use host rootless podman
This commit is contained in:
parent
56526f1e52
commit
74b5892b4e
1 changed files with 11 additions and 3 deletions
|
@ -4,16 +4,24 @@ on: [push, pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
test-rootless:
|
test-rootless:
|
||||||
runs-on: [ci]
|
runs-on: [ci]
|
||||||
|
|
||||||
|
# Point all steps at the host's rootless Podman socket
|
||||||
|
env:
|
||||||
|
PODMAN_HOST: unix:///run/user/1001/podman/podman.sock
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Test Podman rootless
|
- name: Use host rootless Podman
|
||||||
run: |
|
run: |
|
||||||
podman --version
|
set -euo pipefail
|
||||||
podman run --rm alpine:3.20 echo "Hello from rootless Podman!"
|
podman info --format '{{.Host.RemoteSocket.Path}} (remote={{.Host.RemoteSocket.Exists}})'
|
||||||
|
podman version
|
||||||
|
podman run --rm alpine:3.20 echo "Hello from host rootless Podman!"
|
||||||
|
|
||||||
- name: Build and run a container
|
- name: Build and run a container
|
||||||
run: |
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
podman build -t test-image .
|
podman build -t test-image .
|
||||||
podman run --rm test-image
|
podman run --rm test-image
|
Loading…
Add table
Reference in a new issue