Building Docker Images on External Version Change


There is a 3rd party service that I have “Dockerized” with GitLab CI.

Now I would like to automate that an image build every time there is a new version available.

I only have access to checking what the last version is on their website but using curl.

Somehow I need a CI process that:

  • Checks what is the last version on a scheduled basis, say everynight.
  • Checks if that version has already been built or not
  • Triggers the pipeline that build the image if it has not yet been built.

Any ideas of how to best implement this with Gitlab?