Add build args #1
@ -40,9 +40,11 @@ jobs:
|
||||
- name: Build
|
||||
run: |
|
||||
BUILD_ARGS=""
|
||||
while IFS= read -r line; do
|
||||
BUILD_ARGS+=" --build-arg $line"
|
||||
done <<< "${{ inputs.build-args }}"
|
||||
echo "${{ inputs.build_args }}" | while IFS= read -r line; do
|
||||
if [[ ! -z "$line" ]]; then
|
||||
BUILD_ARGS+=" --build-arg $line"
|
||||
fi
|
||||
done
|
||||
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