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