From fb65b32c6c3c81b363bf6782c90640ec436f0e5f Mon Sep 17 00:00:00 2001 From: undergroundwires Date: Fri, 22 Mar 2024 00:39:07 +0100 Subject: [PATCH] ci/cd: install `buildx` to fix deprecated warning --- .github/workflows/checks.build.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/checks.build.yaml b/.github/workflows/checks.build.yaml index 1e8e5dc3..8c4dd554 100644 --- a/.github/workflows/checks.build.yaml +++ b/.github/workflows/checks.build.yaml @@ -81,10 +81,15 @@ jobs: uses: actions/checkout@v4 - name: Install Docker on macOS - if: matrix.os == 'macos' # macOS runner is missing Docker + if: matrix.os == 'macos' # macOS runner is missing Docker (see actions/runner-images#17) run: |- # Install Docker brew install docker + # Install `buildx` (`docker build` without `buildx` is deprecated) + brew install docker-buildx + mkdir -p ~/.docker/cli-plugins + ln -sfn $(which docker-buildx) ~/.docker/cli-plugins/docker-buildx + # docker buildx install # Allow running `docker build` instead of `docker buildx build` # Docker on macOS misses daemon due to licensing, so install colima as runtime brew install colima # Start the daemon