From 194a2b2e39dbf091b131c57a22f4b00be331239c Mon Sep 17 00:00:00 2001 From: Benjamin Grandfond Date: Fri, 10 Nov 2023 17:04:20 +0100 Subject: [PATCH] Update README.md --- README.md | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d6ed34a..9d1be0e 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,32 @@ Note that the usage of Docker Desktop is subject to [Docker Desktop license agre In your GitHub Action workflow, you must use a [GitHub large-runner]([url](https://docs.github.com/en/actions/using-github-hosted-runners/about-larger-runners/about-larger-runners)) with virtualization enabled, and then you can add a step: ``` - steps: +jobs: + test-docker-desktop: + name: Test Docker Desktop installation and start + runs-on: large-ubuntu + steps: - id: start_desktop - uses: docker/desktop-action/start@v0.2.0 + uses: docker/desktop-action/start@v0.3.0 ``` After this step executes, Docker Desktop is ready and available, the docker CLI can be executed in subsequent "run" steps + +By default, the action downloads the last version of Docker Desktop. But you can specify another one by providing the build URL from where the action can download the specific version: + +``` +jobs: + test-docker-desktop: + name: Test Docker Desktop installation and start + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ large-ubuntu ] + build-url: [ "latest", "https://desktop.docker.com/linux/main/amd64/122432/docker-desktop-4.24.0-amd64.deb" ] + + steps: + - name: Start Desktop + uses: ./start + with: + docker-desktop-build-url: ${{ matrix.build-url }} +```