From 74b5892b4ee2c3b617d121cf9a36b3c3cf54fc9c Mon Sep 17 00:00:00 2001 From: continuist Date: Thu, 18 Sep 2025 21:39:37 -0400 Subject: [PATCH] update workflow to use host rootless podman --- .forgejo/workflows/podman-demo.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/podman-demo.yml b/.forgejo/workflows/podman-demo.yml index dbfbb1c..f2e184a 100644 --- a/.forgejo/workflows/podman-demo.yml +++ b/.forgejo/workflows/podman-demo.yml @@ -4,16 +4,24 @@ on: [push, pull_request] jobs: test-rootless: runs-on: [ci] + + # Point all steps at the host's rootless Podman socket + env: + PODMAN_HOST: unix:///run/user/1001/podman/podman.sock + steps: - name: Checkout code uses: actions/checkout@v4 - - name: Test Podman rootless + - name: Use host rootless Podman run: | - podman --version - podman run --rm alpine:3.20 echo "Hello from rootless Podman!" + set -euo pipefail + 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 run: | + set -euo pipefail podman build -t test-image . podman run --rm test-image \ No newline at end of file