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