From a0cb1011df707e84f4ce12010d32810296f33ac4 Mon Sep 17 00:00:00 2001 From: continuist Date: Wed, 10 Sep 2025 00:11:46 -0400 Subject: [PATCH] More CI workflow fixes --- .forgejo/workflows/ci.yml | 65 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index efc611c..bbee453 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -28,6 +28,19 @@ env: jobs: test-backend: runs-on: [ci] + + # <— make podman CLI available inside the job container + container: + image: ${{ env.PODMAN_CLIENT_IMG_DIGEST }} + # If you prefer to be independent of runner-wide options, also pass these: + options: >- + --volume=/run/user/999/podman:/run/user/999/podman:rw + --env=XDG_RUNTIME_DIR=/run/user/999 + + env: + # <— hardcode the socket path that exists on your CI host for UID 999 + PODMAN_SOCK: /run/user/999/podman/podman.sock + steps: - uses: actions/checkout@v4 @@ -131,6 +144,19 @@ jobs: test-frontend: runs-on: [ci] needs: test-backend + + # <— make podman CLI available inside the job container + container: + image: ${{ env.PODMAN_CLIENT_IMG_DIGEST }} + # If you prefer to be independent of runner-wide options, also pass these: + options: >- + --volume=/run/user/999/podman:/run/user/999/podman:rw + --env=XDG_RUNTIME_DIR=/run/user/999 + + env: + # <— hardcode the socket path that exists on your CI host for UID 999 + PODMAN_SOCK: /run/user/999/podman/podman.sock + steps: - uses: actions/checkout@v4 @@ -186,6 +212,19 @@ jobs: build-backend: runs-on: [ci] needs: test-frontend + + # <— make podman CLI available inside the job container + container: + image: ${{ env.PODMAN_CLIENT_IMG_DIGEST }} + # If you prefer to be independent of runner-wide options, also pass these: + options: >- + --volume=/run/user/999/podman:/run/user/999/podman:rw + --env=XDG_RUNTIME_DIR=/run/user/999 + + env: + # <— hardcode the socket path that exists on your CI host for UID 999 + PODMAN_SOCK: /run/user/999/podman/podman.sock + steps: - uses: actions/checkout@v4 @@ -250,6 +289,19 @@ jobs: build-frontend: runs-on: [ci] needs: test-frontend + + # <— make podman CLI available inside the job container + container: + image: ${{ env.PODMAN_CLIENT_IMG_DIGEST }} + # If you prefer to be independent of runner-wide options, also pass these: + options: >- + --volume=/run/user/999/podman:/run/user/999/podman:rw + --env=XDG_RUNTIME_DIR=/run/user/999 + + env: + # <— hardcode the socket path that exists on your CI host for UID 999 + PODMAN_SOCK: /run/user/999/podman/podman.sock + steps: - uses: actions/checkout@v4 @@ -315,6 +367,19 @@ jobs: runs-on: [prod] needs: [build-backend, build-frontend] if: success() + + # <— make podman CLI available inside the job container + container: + image: ${{ env.PODMAN_CLIENT_IMG_DIGEST }} + # If you prefer to be independent of runner-wide options, also pass these: + options: >- + --volume=/run/user/999/podman:/run/user/999/podman:rw + --env=XDG_RUNTIME_DIR=/run/user/999 + + env: + # <— hardcode the socket path that exists on your CI host for UID 999 + PODMAN_SOCK: /run/user/999/podman/podman.sock + steps: - uses: actions/checkout@v4