Page MenuHomeDevCentral

Update Docker Hub builds format from tokens to trigger URL
Open, NormalPublic

Description

Docker Hub changed the system to trigger a new build, with an URL using the following format:

https://hub.docker.com/api/build/v1/source/<source>/trigger/<trigger>/call/

The source is common for all triggers for a repository, while the the trigger are unique.

Tokens aren't used anymore (was for "API v1")

Event Timeline

dereckson triaged this task as Normal priority.Mar 31 2023, 22:40
dereckson created this task.

We still use that for rNOTIF and rGROVE AFAIK, so I provisioned their secrets in Vault at apps/notifications-center/dockerhub/

apps/ is used instead of ops/, as plan is to switch from on-disk files to Vault queries for credentials in a next iteration.

Code is ready both for Notifications and keruald/dockerhub, should be tested with the next build we want to promote before merging.