diff --git a/.gitea/workflows/build-images.yml b/.gitea/workflows/build-images.yml index dd9b2583..07cb0fa1 100644 --- a/.gitea/workflows/build-images.yml +++ b/.gitea/workflows/build-images.yml @@ -38,7 +38,6 @@ jobs: runs-on: linux-amd64 container: image: docker:24-cli - options: -v /var/run/docker.sock:/var/run/docker.sock steps: - name: Checkout run: | @@ -62,7 +61,6 @@ jobs: runs-on: linux-amd64 container: image: docker:24-cli - options: -v /var/run/docker.sock:/var/run/docker.sock steps: - name: Checkout run: | @@ -86,7 +84,6 @@ jobs: runs-on: linux-amd64 container: image: docker:24-cli - options: -v /var/run/docker.sock:/var/run/docker.sock steps: - name: Checkout run: | diff --git a/tests/unit/ciDockerBuilders.test.ts b/tests/unit/ciDockerBuilders.test.ts index 8dd17250..bc2d2541 100644 --- a/tests/unit/ciDockerBuilders.test.ts +++ b/tests/unit/ciDockerBuilders.test.ts @@ -111,8 +111,10 @@ describe("build-images.yml workflow", () => { expect(wf).toContain("workflow_dispatch:"); }); - it("mounts the host Docker socket for image builds", () => { - expect(wf).toContain("-v /var/run/docker.sock:/var/run/docker.sock"); + it("does not explicitly mount the Docker socket (act_runner mounts it automatically)", () => { + // act_runner already mounts /var/run/docker.sock; an explicit options: mount + // causes a 'Duplicate mount point' error and must not be present. + expect(wf).not.toContain("-v /var/run/docker.sock:/var/run/docker.sock"); }); it("authenticates to the local Gitea registry before pushing", () => {