Pass docker socket to job containers, use docker:24 for image builds

This commit is contained in:
Ryan Moon
2026-03-31 18:37:24 -05:00
parent c16dae8de4
commit 8eeb45cb51
2 changed files with 5 additions and 0 deletions

View File

@@ -10,6 +10,10 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container:
image: docker:24
volumes:
- /var/run/docker.sock:/var/run/docker.sock
steps:
- name: Checkout
uses: actions/checkout@v4

View File

@@ -15,3 +15,4 @@ cache:
container:
network: bridge
force_pull: false # reuse cached images to speed up builds
docker_sock_path: /var/run/docker.sock