3030 * [ Define custom ` limactl start ` arguments (macOS)] ( #define-custom-limactl-start-arguments-macos )
3131* [ Customizing] ( #customizing )
3232 * [ inputs] ( #inputs )
33+ * [ inputs.version] ( #inputsversion )
3334 * [ outputs] ( #outputs )
3435* [ Contributing] ( #contributing )
3536* [ License] ( #license )
5051 steps :
5152 -
5253 name : Set up Docker
53- uses : step-security/ghaction-setup-docker@v3
54+ uses : step-security/ghaction-setup-docker@v4
5455` ` `
5556
5657### Daemon configuration
7273 steps:
7374 -
7475 name: Set up Docker
75- uses: step-security/ghaction-setup-docker@v3
76+ uses: step-security/ghaction-setup-docker@v4
7677 with:
7778 daemon-config: |
7879 {
@@ -100,7 +101,7 @@ jobs:
100101 steps:
101102 -
102103 name: Set up Docker
103- uses: step-security/ghaction-setup-docker@v3
104+ uses: step-security/ghaction-setup-docker@v4
104105 env:
105106 LIMA_START_ARGS: --cpus 4 --memory 8
106107` ` `
@@ -113,20 +114,88 @@ The following inputs can be used as `step.with` keys
113114
114115| Name | Type | Default | Description |
115116|-----------------|--------|-----------------------|-----------------------------------------------------------------------------------------------------------------------------|
116- | `version` | String | `latest` | Docker CE version (e.g., `v24.0.6`). |
117- | `channel` | String | `stable` | Docker CE [channel](https://download.docker.com/linux/static/) (e.g, `stable`, `edge` or `test`). |
117+ | `version` | String | `latest` | Docker version to use. See [inputs.version](#inputs.version). |
118+ | `channel` | String | `stable` | Docker CE [channel](https://download.docker.com/linux/static/) (`stable` or `test`). Only applicable to `type=archive` |
118119| `daemon-config` | String | | [Docker daemon JSON configuration](https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file) |
120+ | `tcp-port` | Number | | TCP port to expose the Docker API locally |
119121| `context` | String | `setup-docker-action` | Docker context name. |
120122| `set-host` | Bool | `false` | Set `DOCKER_HOST` environment variable to docker socket path. |
121123| `rootless` | Bool | `false` | Start daemon in rootless mode |
122124
125+ # ## inputs.version
126+
127+ By default, the latest stable version of Docker is fetched from download.docker.com.
128+
129+ You can specify a specific version number (e.g. `v27.4.0`).
130+ Which is a shorthand for the full comma separated value :
131+
132+ ` type=archive,channel=stable,version=v27.4.0`
133+
134+ You can also use this full csv format instead.
135+
136+ Currently supported source types are :
137+ - ` archive`
138+ - ` image`
139+
140+ # ### `type=archive`
141+ | Key | Default | Description |
142+ |-----------|------------|--------------------------------------------------------------------------------------|
143+ | `type` | `archive` | The source type of the Docker binaries. Possible values are `archive` and `image`. |
144+ | `channel` | `stable` | The download.docker.com channel (`stable` or `test`). |
145+ | `version` | `latest` | The Docker version to use. |
146+
147+ Examples :
148+ ` ` ` yaml
149+ # last stable released version
150+ version: latest
151+ version: type=archive # same as above
152+ version: version=latest # same as above
153+ version: type=archive,version=latest # same as above
154+ ` ` `
155+
156+ ` ` ` yaml
157+ # v27.3.0-rc.1 from test channel
158+ version: type=archive,version=27.3.0-rc.1,channel=test
159+ ` ` `
160+
161+ # ### `type=image`
162+
163+ Other possible source type is `image` which will pull the Docker binaries from the `moby/moby-bin` and
164+ ` dockereng/cli-bin` Docker Hub repositories.
165+ The advantage of using this source type is that these images are built by the Moby and Docker CI pipelines
166+ for each branch and PR, so you can use the `tag` input to install a specific version or branch (e.g. `master`).
167+
168+ | Key | Default | Description |
169+ |-----------|------------|--------------------------------------------------------------------------------------|
170+ | `tag` | `latest` | The image tag to use. |
171+
172+ See https://hub.docker.com/r/moby/moby-bin/tags and https://hub.docker.com/r/dockereng/cli-bin/tags for available tags.
173+
174+ Examples :
175+ ` ` ` yaml
176+ # install last stable released version from bin images
177+ version: type=image
178+ version: type=image,tag=latest # same as above
179+ ` ` `
180+
181+ ` ` ` yaml
182+ # a cutting-edge version from the ` master` branch
183+ version : type=image,tag=master
184+ ` ` `
185+
186+ ` ` ` yaml
187+ # install v27.4.0 from bin images
188+ version : type=image,tag=27.4.0
189+ ` ` `
190+
123191### outputs
124192
125193The following outputs are available
126194
127- | Name | Type | Description |
128- |--------|--------|--------------------|
129- | `sock` | String | Docker socket path |
195+ | Name | Type | Description |
196+ |--------|--------|---------------------------------------|
197+ | ` sock` | String | Docker socket path |
198+ | `tcp` | String | Docker TCP address if tcp-port is set |
130199
131200# # License
132201
0 commit comments