Add VAT api post for IBFE artifacts
We need to start posting artifact and publishedTimestamp data to the internal/import/artifacts
VAT endpoint. This will eventually replace the ibfe api endpoint we're currently posting to in the S3 stage, but we can continue hitting that endpoint until IBFE migrates to using VAT's endpoints for this data.
At the very end of the pipeline (before/after posting to IBFE's endpoint), we need to:
- Create a json body in the form
{
"containerName": "redhat/ubi/ubi8",
"containerVersion": "8.4",
"publishedTimestamp": "2030-01-01T00:34:58.955Z",
"readme": "abc/12345/readme",
"license": "abc/12345/license",
"tar": "abc/12345/ubi8.tar"
}
- Create a bearer token auth header using the
CI_JOB_JWT
- POST to
os.environ['VAT_BACKEND_SERVER_URL]/internal/import/artifacts
Edited by Kenneth Maguire