From 82aae0df6adf2a3dd4532bbc87a66dcbc379c475 Mon Sep 17 00:00:00 2001 From: continuist Date: Thu, 11 Sep 2025 16:19:58 -0400 Subject: [PATCH] Fix ubuntu container being read only --- .forgejo/workflows/ci.yml | 55 ++++++++++++++++++++++++++++----------- 1 file changed, 40 insertions(+), 15 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index c56a037..3dc39ed 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -31,15 +31,20 @@ jobs: container: image: ghcr.io/catthehacker/ubuntu:act-22.04 - + options: >- + --read-only=false + -v /run/user/999/podman:/run/user/999/podman:rw + -e XDG_RUNTIME_DIR=/run/user/999 env: CONTAINER_HOST: unix:///run/user/999/podman/podman.sock - steps: - name: Install Podman client + env: + DEBIAN_FRONTEND: noninteractive run: | apt-get update - apt-get install -y podman jq + apt-get install -y --no-install-recommends podman jq + - uses: actions/checkout@v4 - name: Verify runner wiring to Podman @@ -145,15 +150,20 @@ jobs: container: image: ghcr.io/catthehacker/ubuntu:act-22.04 - + options: >- + --read-only=false + -v /run/user/999/podman:/run/user/999/podman:rw + -e XDG_RUNTIME_DIR=/run/user/999 env: CONTAINER_HOST: unix:///run/user/999/podman/podman.sock - steps: - name: Install Podman client + env: + DEBIAN_FRONTEND: noninteractive run: | apt-get update - apt-get install -y podman jq + apt-get install -y --no-install-recommends podman jq + - uses: actions/checkout@v4 - name: Verify runner wiring to Podman @@ -211,15 +221,20 @@ jobs: container: image: ghcr.io/catthehacker/ubuntu:act-22.04 - + options: >- + --read-only=false + -v /run/user/999/podman:/run/user/999/podman:rw + -e XDG_RUNTIME_DIR=/run/user/999 env: CONTAINER_HOST: unix:///run/user/999/podman/podman.sock - steps: - name: Install Podman client + env: + DEBIAN_FRONTEND: noninteractive run: | apt-get update - apt-get install -y podman jq + apt-get install -y --no-install-recommends podman jq + - uses: actions/checkout@v4 - name: Verify runner wiring to Podman @@ -286,15 +301,20 @@ jobs: container: image: ghcr.io/catthehacker/ubuntu:act-22.04 - + options: >- + --read-only=false + -v /run/user/999/podman:/run/user/999/podman:rw + -e XDG_RUNTIME_DIR=/run/user/999 env: CONTAINER_HOST: unix:///run/user/999/podman/podman.sock - steps: - name: Install Podman client + env: + DEBIAN_FRONTEND: noninteractive run: | apt-get update - apt-get install -y podman jq + apt-get install -y --no-install-recommends podman jq + - uses: actions/checkout@v4 - name: Verify runner wiring to Podman @@ -362,15 +382,20 @@ jobs: container: image: ghcr.io/catthehacker/ubuntu:act-22.04 - + options: >- + --read-only=false + -v /run/user/999/podman:/run/user/999/podman:rw + -e XDG_RUNTIME_DIR=/run/user/999 env: CONTAINER_HOST: unix:///run/user/999/podman/podman.sock - steps: - name: Install Podman client + env: + DEBIAN_FRONTEND: noninteractive run: | apt-get update - apt-get install -y podman jq + apt-get install -y --no-install-recommends podman jq + - uses: actions/checkout@v4 - name: Verify Podman in job container