Skip to content

Commit

Permalink
add buildx plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
drifter089 committed Oct 29, 2024
1 parent d50db33 commit 781f8ee
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ jobs:
- name: Setup docker (missing on MacOS)
if: runner.os == 'macos'
run: |
brew install docker
brew install docker docker-buildx
brew install colima
colima start
while ! docker info >/dev/null 2>&1; do sleep 1; done
mkdir -p ~/.docker/cli-plugins
ln -sfn $(which docker-buildx) ~/.docker/cli-plugins/docker-buildx
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
Expand All @@ -43,8 +46,6 @@ jobs:
password: ${{ secrets.REGISTRY_TOKEN }}
-
name: Build Dev Container Image
env:
DOCKER_BUILDKIT: ${{ runner.os == 'macOS' && '0' || '' }}
uses: devcontainers/[email protected]
with:
subFolder: .github
Expand All @@ -53,8 +54,6 @@ jobs:
push: never

- name: Test Container Image
env:
DOCKER_BUILDKIT: ${{ runner.os == 'macOS' && '0' || '' }}
run: |
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"
Expand Down

0 comments on commit 781f8ee

Please sign in to comment.