Compare commits
No commits in common. "b4d8dfc154de491f79126741124d7397ea1be536" and "7112fbc0c190b2fc6c7c1da39dcc49cdda9e69af" have entirely different histories.
b4d8dfc154
...
7112fbc0c1
@ -38,6 +38,7 @@ jobs:
|
|||||||
runs-on: linux-amd64
|
runs-on: linux-amd64
|
||||||
container:
|
container:
|
||||||
image: docker:24-cli
|
image: docker:24-cli
|
||||||
|
options: -v /var/run/docker.sock:/var/run/docker.sock
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: |
|
run: |
|
||||||
@ -61,6 +62,7 @@ jobs:
|
|||||||
runs-on: linux-amd64
|
runs-on: linux-amd64
|
||||||
container:
|
container:
|
||||||
image: docker:24-cli
|
image: docker:24-cli
|
||||||
|
options: -v /var/run/docker.sock:/var/run/docker.sock
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: |
|
run: |
|
||||||
@ -84,6 +86,7 @@ jobs:
|
|||||||
runs-on: linux-amd64
|
runs-on: linux-amd64
|
||||||
container:
|
container:
|
||||||
image: docker:24-cli
|
image: docker:24-cli
|
||||||
|
options: -v /var/run/docker.sock:/var/run/docker.sock
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@ -111,10 +111,8 @@ describe("build-images.yml workflow", () => {
|
|||||||
expect(wf).toContain("workflow_dispatch:");
|
expect(wf).toContain("workflow_dispatch:");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("does not explicitly mount the Docker socket (act_runner mounts it automatically)", () => {
|
it("mounts the host Docker socket for image builds", () => {
|
||||||
// act_runner already mounts /var/run/docker.sock; an explicit options: mount
|
expect(wf).toContain("-v /var/run/docker.sock:/var/run/docker.sock");
|
||||||
// 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", () => {
|
it("authenticates to the local Gitea registry before pushing", () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user