Skip to content

Integrate API with build image pipeline

Feature description

DCIF relies on having data from images been built on another repo. And to have the latest updates we need an integration that can collect the .json files and publish them using the /publish route.

Context

Currently there is 2 repos to build the images:

If you look at the stages of those pipelines when it ends building the images it stored the output as json files.

image

Possible Solution

  • Create a stage after Vendor post upload called Image Finder Upload`
  • This stage should contain a shell script that collects all .json files and use curl to post each one to the DCIF api.
  • Create API token inside DCIF for daily and release repos
  • Talk to cloud team to add those tokens to the GitLab secrets
Edited by Arthur Diniz