Add build args #1

Merged
jamie merged 9 commits from build-args into main 2025-03-03 19:39:27 +00:00
Showing only changes of commit b932234ac8 - Show all commits

View File

@ -40,9 +40,11 @@ jobs:
- name: Build - name: Build
run: | run: |
BUILD_ARGS="" BUILD_ARGS=""
while IFS= read -r line; do echo "${{ inputs.build_args }}" | while IFS= read -r line; do
BUILD_ARGS+=" --build-arg $line" if [[ ! -z "$line" ]]; then
done <<< "${{ inputs.build-args }}" BUILD_ARGS+=" --build-arg $line"
fi
done
docker build . $BUILD_ARGS \ docker build . $BUILD_ARGS \
-t ${{ vars.REGISTRY }}/${{ gitea.repository }}:${{ inputs.tag }} \ -t ${{ vars.REGISTRY }}/${{ gitea.repository }}:${{ inputs.tag }} \
-t ${{ vars.REGISTRY }}/${{ gitea.repository }}:${{ gitea.sha }} -t ${{ vars.REGISTRY }}/${{ gitea.repository }}:${{ gitea.sha }}