Skip to content

curl_upload_file: add `--directory` argument

Matthew Clarkson requested to merge upload-file-args into main

Allows adding path directory to the composed URL.

bazel run -- :upload --dir one --dir two
bazel run -- :upload --directory one/two

This can be useful to prefix the uploaded file with a CI environment variable:

bazel run -- :upload --dir "${CI_PIPELINE_ID}"
Edited by Matthew Clarkson

Merge request reports