add support for building in sub container

This commit is contained in:
Ampenberger, Chris
2026-02-11 15:38:21 -05:00
parent 2c40422ef2
commit ec0a641f39

View File

@@ -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=""