mirror of
https://github.com/docker/build-push-action.git
synced 2025-06-29 15:56:41 +02:00
Add context-subdir input
Adds a `context-subdir` input which gets appended to the context URL. This new input is ignored (with a warning) if the user gives a non-default `context` input such as a path. Signed-off-by: actualben <actualben@users.noreply.github.com>
This commit is contained in:
parent
b1aeb1103e
commit
e946f387af
4 changed files with 62 additions and 2 deletions
|
@ -491,6 +491,43 @@ nproc=3`],
|
|||
'.'
|
||||
]
|
||||
],
|
||||
[
|
||||
15,
|
||||
'0.7.0',
|
||||
new Map<string, string>([
|
||||
['context-subdir', 'test'],
|
||||
['load', 'false'],
|
||||
['no-cache', 'false'],
|
||||
['pull', 'false'],
|
||||
['push', 'false'],
|
||||
]),
|
||||
[
|
||||
'buildx',
|
||||
'build',
|
||||
'--iidfile', '/tmp/.docker-build-push-jest/iidfile',
|
||||
'--metadata-file', '/tmp/.docker-build-push-jest/metadata-file',
|
||||
'https://github.com/docker/build-push-action.git#refs/heads/test-jest:test'
|
||||
]
|
||||
],
|
||||
[
|
||||
16,
|
||||
'0.7.0',
|
||||
new Map<string, string>([
|
||||
['context', './test'],
|
||||
['context-subdir', 'should-be-ignored'],
|
||||
['load', 'false'],
|
||||
['no-cache', 'false'],
|
||||
['pull', 'false'],
|
||||
['push', 'false'],
|
||||
]),
|
||||
[
|
||||
'buildx',
|
||||
'build',
|
||||
'--iidfile', '/tmp/.docker-build-push-jest/iidfile',
|
||||
'--metadata-file', '/tmp/.docker-build-push-jest/metadata-file',
|
||||
'./test'
|
||||
]
|
||||
],
|
||||
])(
|
||||
'[%d] given %p with %p as inputs, returns %p',
|
||||
async (num: number, buildxVersion: string, inputs: Map<string, any>, expected: Array<string>) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue