Skip to content

Commit 89b3f36

Browse files
committed
add docker-setup action
1 parent 84785f6 commit 89b3f36

File tree

3 files changed

+18
-30
lines changed

3 files changed

+18
-30
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: 'Docker Setup'
2+
description: 'Setups the docker engine'
3+
4+
runs:
5+
using: 'composite'
6+
steps:
7+
- name: Set up Docker
8+
uses: docker/setup-docker-action@v4
9+
with:
10+
daemon-config: '{ "features": { "containerd-snapshotter": true } }'
11+
- name: Setup Docker Buildx
12+
uses: docker/setup-buildx-action@v3
13+
with:
14+
version: 'latest'
15+
driver-opts: 'image=moby/buildkit:buildx-stable-1'
16+
install: true

.github/workflows/_docker.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,7 @@ jobs:
4343
path: ${{ github.workspace }}/artifacts/packages/nuget
4444
-
4545
name: Set up Docker
46-
uses: docker/setup-docker-action@v4
47-
with:
48-
daemon-config: '{ "features": { "containerd-snapshotter": true } }'
49-
-
50-
name: Setup QEMU
51-
uses: docker/setup-qemu-action@v3
52-
if: inputs.runner != 'ubuntu-latest-arm64'
53-
-
54-
name: Setup Docker Buildx
55-
uses: docker/setup-buildx-action@v3
56-
if: inputs.runner != 'ubuntu-latest-arm64'
57-
with:
58-
version: 'latest'
59-
driver-opts: 'image=moby/buildkit:buildx-stable-1'
60-
install: true
46+
uses: ./.github/actions/docker-setup
6147
-
6248
name: Docker Test
6349
if: success() && github.event_name == 'pull_request' || github.repository_owner != 'GitTools'

.github/workflows/_docker_manifests.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,7 @@ jobs:
3131
uses: ./.github/actions/cache-restore
3232
-
3333
name: Set up Docker
34-
uses: docker/setup-docker-action@v4
35-
with:
36-
daemon-config: '{ "features": { "containerd-snapshotter": true } }'
37-
-
38-
name: Setup QEMU
39-
uses: docker/setup-qemu-action@v3
40-
if: inputs.runner != 'ubuntu-latest-arm64'
41-
-
42-
name: Setup Docker Buildx
43-
uses: docker/setup-buildx-action@v3
44-
if: inputs.runner != 'ubuntu-latest-arm64'
45-
with:
46-
version: 'latest'
47-
driver-opts: 'image=moby/buildkit:buildx-stable-1'
48-
install: true
34+
uses: ./.github/actions/docker-setup
4935
-
5036
name: Docker Manifests
5137
if: success() && github.event_name != 'pull_request' && github.repository_owner == 'GitTools' && github.ref_name == 'main'

0 commit comments

Comments
 (0)