fix: use vfs storage driver for podman-in-container builds
Runner ignores --privileged, so overlay mounts fail inside the container. Switch to vfs storage driver via containers config. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -31,11 +31,12 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
needs: [test, secrets]
|
needs: [test, secrets]
|
||||||
runs-on: linux
|
runs-on: linux
|
||||||
container:
|
container: quay.io/podman/stable
|
||||||
image: quay.io/podman/stable
|
|
||||||
options: --privileged
|
|
||||||
steps:
|
steps:
|
||||||
- run: dnf install -y git
|
- run: |
|
||||||
|
dnf install -y git
|
||||||
|
mkdir -p ~/.config/containers
|
||||||
|
printf '[storage]\ndriver = "vfs"\n' > ~/.config/containers/storage.conf
|
||||||
- run: |
|
- run: |
|
||||||
git clone --depth 1 \
|
git clone --depth 1 \
|
||||||
-c "http.extraHeader=Authorization: token ${{ github.token }}" \
|
-c "http.extraHeader=Authorization: token ${{ github.token }}" \
|
||||||
|
|||||||
Reference in New Issue
Block a user