Skip to content

Commit 069b5d9

Browse files
committed
Install Docker on macOS
1 parent bedfd24 commit 069b5d9

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: "Install Docker on macOS"
3+
description: "Performs an unattended install of Docker Desktop for MacOS"
4+
runs:
5+
using: "composite"
6+
steps:
7+
# From https://github.com/docker/for-mac/issues/2359#issuecomment-943131345
8+
- run: |
9+
brew install --cask docker
10+
sudo /Applications/Docker.app/Contents/MacOS/Docker --unattended --install-privileged-components
11+
open -a /Applications/Docker.app --args --unattended --accept-license
12+
while ! /Applications/Docker.app/Contents/Resources/bin/docker info &>/dev/null; do sleep 1; done
13+
shell: bash
14+
branding:
15+
icon: "tag"
16+
color: "blue"
17+
...

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ jobs:
2323
distribution: 'zulu'
2424
java-version: ${{ matrix.java }}
2525
cache: 'gradle'
26+
- name: Install Docker on macOS
27+
if: matrix.os == 'macos-latest'
28+
uses: ./.github/actions/docker-install-macos
29+
- name: docker version
30+
run: docker version
31+
- name: docker info
32+
run: docker info
2633
- name: clean build
2734
run: ./gradlew clean build --info --stacktrace
2835
- name: Publish Test Report

0 commit comments

Comments
 (0)