Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find the status of automated builds in Docker Hub

Tags:

dockerhub

How to find the status of automated builds which get triggered either manually or via the Trigger url for a Docker Hub project.

https://hub.docker.com/repository/docker/company/webapp/builds
  1. I would like to understand if its running and if its running the current status (i.e still running or build completed)
  2. List of past builds
  3. Status of all builds (time initiated, completed, build status)
like image 531
Rpj Avatar asked Nov 25 '22 22:11

Rpj


1 Answers

Try with this:

curl https://hub.docker.com/api/build/v1/source/?image={namespace}/{repo} | jq '.objects[0].state'

Add bearer token in your request if it is a private repo

-H "Authorization: Bearer {Token}"
like image 114
Alex Lee Avatar answered Dec 15 '22 14:12

Alex Lee