add support for building in sub container
This commit is contained in:
@@ -36,6 +36,11 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ""
|
||||||
|
subdirectory:
|
||||||
|
description: "Subdirectory to use for the build context"
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
PASSWORD:
|
PASSWORD:
|
||||||
@@ -77,6 +82,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Build container
|
- name: Build container
|
||||||
run: |
|
run: |
|
||||||
|
[ -n "${{inputs.subdirectory}}" ] && cd ${{inputs.subdirectory}}
|
||||||
|
|
||||||
# split the extra-args and construct build-arg parameters
|
# split the extra-args and construct build-arg parameters
|
||||||
set -- ${EXTRA_ARGS}
|
set -- ${EXTRA_ARGS}
|
||||||
args=""
|
args=""
|
||||||
|
|||||||
Reference in New Issue
Block a user