ci/cd: install buildx to fix deprecated warning

This commit is contained in:
undergroundwires
2024-03-22 00:39:07 +01:00
parent 8f497974a8
commit fb65b32c6c

View File

@@ -81,10 +81,15 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- -
name: Install Docker on macOS 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: |- run: |-
# Install Docker # Install Docker
brew 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 # Docker on macOS misses daemon due to licensing, so install colima as runtime
brew install colima brew install colima
# Start the daemon # Start the daemon