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:
Ben Burke 2021-12-28 02:37:17 +00:00 committed by actualben
commit e946f387af
4 changed files with 62 additions and 2 deletions

View file

@ -28,6 +28,9 @@ inputs:
context:
description: "Build's context is the set of files located in the specified PATH or URL"
required: false
context-subdir:
description: "Subdirectory of the git repo to use as the docker build context (when using a URL-based context)"
required: false
file:
description: "Path to the Dockerfile"
required: false