Skip to content

ci-fairy: add s3cp to upload/download for the minio replacement

Benjamin Tissoires requested to merge bentiss/ci-templates:s3cp into master

This is not pure S3 that we are using now:

  • authentication is done through a JWT token in each request
  • a plain PUT/GET is enough to upload/download files

This is more of a convenience wrapper because we could use a simple curl call to download:

curl -H "Authorization: Bearer $TOKEN" \
     https://s3.freedesktop.org/artifacts/namespace/project/pipelineID/file

and to upload:

curl -H "Authorization: Bearer $TOKEN" \
     -H 'x-amz-acl: public-read-write' \
     -H "Content-Type: application/octet-stream" \
     -T file \
     https://s3.freedesktop.org/artifacts/namespace/project/pipelineID/file

Signed-off-by: Benjamin Tissoires benjamin.tissoires@gmail.com

Merge request reports

Loading