Skip to content

Commit fcbfa5c

Browse files
committed
add "create default network" step to actions
1 parent b81fb12 commit fcbfa5c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build-nabla.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ jobs:
5555
run: |
5656
docker pull "${{ env.image }}:${{ matrix.tag }}"
5757
58+
- name: Create default network
59+
run: |
60+
if (-not (docker network ls --format '{{.Name}}' | Where-Object { $_ -eq 'docker_default' })) {
61+
docker network create --driver nat docker_default
62+
if ($LASTEXITCODE -ne 0) { exit 1 }
63+
}
64+
5865
- name: Run Container
5966
run: |
6067
$ctx = docker context show

0 commit comments

Comments
 (0)