This commit is contained in:
Jamie Schouten 2025-03-03 20:27:06 +01:00
parent 5e7a26d64f
commit 619c28343a

View File

@ -40,12 +40,14 @@ jobs:
- name: Build - name: Build
run: | run: |
BUILD_ARGS="" BUILD_ARGS=""
echo "${{ inputs.build-args }}" | while IFS= read -r line; do while IFS= read -r line; do
echo "LINE CONTENT: $line" echo "LINE CONTENT: $line"
if [ -n "$line" ]; then if [ -n "$line" ]; then
BUILD_ARGS="$BUILD_ARGS --build-arg $line" BUILD_ARGS="$BUILD_ARGS --build-arg $line"
fi fi
done done <<EOF
${{ inputs.build-args }}
EOF
echo "Final BUILD_ARGS: $BUILD_ARGS" echo "Final BUILD_ARGS: $BUILD_ARGS"
docker build . $BUILD_ARGS \ docker build . $BUILD_ARGS \
-t ${{ vars.REGISTRY }}/${{ gitea.repository }}:${{ inputs.tag }} \ -t ${{ vars.REGISTRY }}/${{ gitea.repository }}:${{ inputs.tag }} \