-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from gtardif/trying_ubntu_latest
Run Desktop on ubuntu-latest standard nodes
- Loading branch information
Showing
2 changed files
with
5 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,24 +3,12 @@ | |
Github Action to start Docker Desktop. | ||
|
||
This github action is [experimental](https://docs.docker.com/release-lifecycle/#experimental). | ||
It currently supports starting Docker Desktop on large-runner "linux" nodes in Github Actions. | ||
It currently supports starting Docker Desktop on "linux" nodes (ubuntu-latest) in Github Actions. | ||
|
||
**Important**: it seems that since mid September 2023, the action inconsistently fails on macOs runner. We have updated the action to use linux runners. However, since virtualisation is required for Docker Desktop to start, you must be sure that the runner as it enabled. Large-runners [have it from February 2023]([url](https://github.blog/changelog/2023-02-23-hardware-accelerated-android-virtualization-on-actions-windows-and-linux-larger-hosted-runners/)). | ||
**Important**: since mid September 2023, the action inconsistently fails on macOs runner. We have updated the action to use linux runners. | ||
|
||
Note that the usage of Docker Desktop is subject to [Docker Desktop license agreement](https://docs.docker.com/subscription/desktop-license/). | ||
|
||
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: | ||
|
||
``` | ||
jobs: | ||
test-docker-desktop: | ||
name: Test Docker Desktop installation and start | ||
runs-on: large-ubuntu | ||
steps: | ||
- id: start_desktop | ||
uses: docker/desktop-action/[email protected] | ||
``` | ||
|
||
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: | ||
|
@@ -32,7 +20,7 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ large-ubuntu ] | ||
os: [ ubuntu-latest ] | ||
build-url: [ "latest", "https://desktop.docker.com/linux/main/amd64/122432/docker-desktop-4.24.0-amd64.deb" ] | ||
steps: | ||
|