Skip to content

Commit 781f8ee

Browse files
committed
add buildx plugin
1 parent d50db33 commit 781f8ee

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/devcontainer.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@ jobs:
3131
- name: Setup docker (missing on MacOS)
3232
if: runner.os == 'macos'
3333
run: |
34-
brew install docker
34+
brew install docker docker-buildx
3535
brew install colima
3636
colima start
37+
while ! docker info >/dev/null 2>&1; do sleep 1; done
38+
mkdir -p ~/.docker/cli-plugins
39+
ln -sfn $(which docker-buildx) ~/.docker/cli-plugins/docker-buildx
3740
3841
- name: Login to GitHub Container Registry
3942
uses: docker/login-action@v2
@@ -43,8 +46,6 @@ jobs:
4346
password: ${{ secrets.REGISTRY_TOKEN }}
4447
-
4548
name: Build Dev Container Image
46-
env:
47-
DOCKER_BUILDKIT: ${{ runner.os == 'macOS' && '0' || '' }}
4849
uses: devcontainers/ci@v0.2
4950
with:
5051
subFolder: .github
@@ -53,8 +54,6 @@ jobs:
5354
push: never
5455

5556
- name: Test Container Image
56-
env:
57-
DOCKER_BUILDKIT: ${{ runner.os == 'macOS' && '0' || '' }}
5857
run: |
5958
docker run --rm ghcr.io/${{ github.repository }} /bin/bash -c "git clone -b devContainers https://github.com/drifter089/pypsa-earth.git && cd pypsa-earth && bash .github/.devcontainer/test.sh"
6059

0 commit comments

Comments
 (0)