mirror of
https://github.com/docker/setup-docker-action.git
synced 2025-04-21 08:10:01 +02:00
Merge pull request #8 from crazy-max/fix-version-latest
fix version to latest
This commit is contained in:
commit
a2ce6b1772
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -89,8 +89,6 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: Set up Docker
|
name: Set up Docker
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
|
||||||
version: v23.0.1
|
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
@ -119,8 +117,6 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: Set up Docker
|
name: Set up Docker
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
|
||||||
version: v23.0.1
|
|
||||||
-
|
-
|
||||||
name: Start registry
|
name: Start registry
|
||||||
run: |
|
run: |
|
||||||
@ -153,8 +149,6 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: Set up Docker
|
name: Set up Docker
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
|
||||||
version: v23.0.1
|
|
||||||
-
|
-
|
||||||
name: Build
|
name: Build
|
||||||
working-directory: ./test
|
working-directory: ./test
|
||||||
|
@ -37,6 +37,15 @@ describe('getInputs', () => {
|
|||||||
channel: 'test',
|
channel: 'test',
|
||||||
context: 'foo',
|
context: 'foo',
|
||||||
} as context.Inputs
|
} as context.Inputs
|
||||||
|
],
|
||||||
|
[
|
||||||
|
2,
|
||||||
|
new Map<string, string>([]),
|
||||||
|
{
|
||||||
|
version: 'latest',
|
||||||
|
channel: '',
|
||||||
|
context: '',
|
||||||
|
} as context.Inputs
|
||||||
]
|
]
|
||||||
])(
|
])(
|
||||||
'[%d] given %p as inputs, returns %p',
|
'[%d] given %p as inputs, returns %p',
|
||||||
|
@ -10,6 +10,7 @@ inputs:
|
|||||||
version:
|
version:
|
||||||
description: 'Docker CE version. (e.g, v23.0.1)'
|
description: 'Docker CE version. (e.g, v23.0.1)'
|
||||||
required: false
|
required: false
|
||||||
|
default: 'latest'
|
||||||
channel:
|
channel:
|
||||||
description: 'Docker CE channel. (e.g, stable, edge or test)'
|
description: 'Docker CE channel. (e.g, stable, edge or test)'
|
||||||
required: false
|
required: false
|
||||||
|
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@ -8,7 +8,7 @@ export interface Inputs {
|
|||||||
|
|
||||||
export function getInputs(): Inputs {
|
export function getInputs(): Inputs {
|
||||||
return {
|
return {
|
||||||
version: core.getInput('version'),
|
version: core.getInput('version') || 'latest',
|
||||||
channel: core.getInput('channel'),
|
channel: core.getInput('channel'),
|
||||||
context: core.getInput('context')
|
context: core.getInput('context')
|
||||||
};
|
};
|
||||||
|
@ -21,7 +21,7 @@ actionsToolkit.run(
|
|||||||
|
|
||||||
const install = new Install({
|
const install = new Install({
|
||||||
runDir: runDir,
|
runDir: runDir,
|
||||||
version: input.version || 'latest',
|
version: input.version,
|
||||||
channel: input.channel || 'stable',
|
channel: input.channel || 'stable',
|
||||||
contextName: input.context || 'setup-docker-action'
|
contextName: input.context || 'setup-docker-action'
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user