Skip to content

Commit f7c1b46

Browse files
committed
Add a workflow that uses Docker-in-Docker to test with containerd
GitHub actions currently ships an old version of Docker without support for multi-platform images or the containerd storage backend. Signed-off-by: Bozhidar Marinov <bozhidar.marinov1@digits.schwarz>
1 parent 1584d5b commit f7c1b46

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/test.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,28 @@ jobs:
2323
uses: codecov/codecov-action@v4
2424
with:
2525
token: ${{ secrets.CODECOV_TOKEN }}
26+
test-and-build-linux-dind:
27+
runs-on: ubuntu-latest
28+
services:
29+
docker:
30+
image: docker:dind
31+
options: --privileged
32+
command: dockerd --host=tcp://0.0.0.0:2376 --tls=false
33+
ports: 127.0.0.1:2376:2376
34+
steps:
35+
- uses: actions/checkout@v4
36+
- name: Set up go
37+
uses: actions/setup-go@v5
38+
with:
39+
go-version-file: 'go.mod'
40+
- name: Test
41+
run: make test
42+
env:
43+
DOCKER_HOST: "tcp://127.0.0.1:2376"
44+
- name: Upload Coverage to Codecov
45+
uses: codecov/codecov-action@v4
46+
with:
47+
token: ${{ secrets.CODECOV_TOKEN }}
2648
test-and-build-windows:
2749
runs-on: windows-2022
2850
steps:

0 commit comments

Comments
 (0)