Skip to content

Commit

Permalink
github/actions/kas-build: fix entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
asac committed Aug 6, 2024
1 parent fdbaefb commit bdaae95
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/actions/kas-build/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,24 @@ set -xe
KAS_BUILD_ACTION_CONFIG_DIR=${KAS_BUILD_ACTION_CONFIG_DIR:-kas-build.configs/}
KAS_BUILD_ACTION_TARGET=${KAS_BUILD_ACTION_TARGET}
KAS_BUILD_ACTION_COMMAND=${KAS_BUILD_ACTION_COMMAND}
KAS_BUILD_ACTION_BBARGS=${KAS_BUILD_ACTION_BBARGS}
KAS_BUILD_ACTION_BBARGS=${KAS_BUILD_ACTION_BBARGS:+ -- $KAS_BUILD_ACTION_BBARGS}

echo Target: $KAS_BUILD_ACTION_TARGET
echo Command: $KAS_BUILD_ACTION_COMMAND
echo Config-Dir: $KAS_BUILD_ACTION_CONFIG_DIR
echo BBARGS: $KAS_BUILD_ACTION_BBARGS

echo WORKSPACE:
ls -la $GITHUB_WORKSPACE
echo workspace '*'
ls -la *

for c in ${KAS_BUILD_ACTION_CONFIG_DIR}/*.yaml; do
echo "Building $c"
kas build \
${KAS_BUILD_ACTION_TARGET:+--target $KAS_BUILD_ACTION_TARGET} \
${KAS_BUILD_ACTION_COMMAND:+--cmd $KAS_BUILD_ACTION_COMMAND} \
$c \
-- ${KAS_BUILD_ACTION_BBARGS}
${KAS_BUILD_ACTION_BBARGS}
done

0 comments on commit bdaae95

Please sign in to comment.