Compares *latest* timestamps of 2 images and triggers a new build if the base image is more recent.
246
This image compares the timestamps of the latest builds for two Docker Hub images (assuming one of them is the the image the other one is based on -- aka base image), and executes an HTTP post to trigger a new build if the base image is more recent.
I created this image because the Docker Hub repository links build option only works for non-official images.
docker run --env-file=.env checkbuild
This can easily be configured to run as cron job on the host.
Define these in your .env file:
BASE_USERNAME: username of the upstream image repositoryBASE_REPOSITORY: name of the upstream image repositoryMY_USERNAME: your usernameMY_REPOSITORY: your repositoryBUILD_TRIGGER_URL: trigger build URLSLACK_WEBHOOK: Slack webhook for notificationsContent type
Image
Digest
Size
38.4 MB
Last updated
almost 7 years ago
docker pull nuntz/checkbuild