Check updates for Docker images from Docker Hub or private repository, and deploy updated versions to Dokku.
- Bash 4+
- jq
- … Dokku, probably? 🤔
- Update the
images
andprivateImages
arrays to match your setup- The key (
blog
,matomo
, etc.) must correspond to the application name in Dokku - For public images, the value is a semicolon-separated string with two values:
- The first value is Docker Hub path; for official images, replace
_
in URL withlibrary
(seeghost
example); for user images, use both organization name and repository name (seeportainer
example) - The second value is an escaped regex to filter through the retrieved tags; only tags matching the filter will be considered for updates; when in doubt, blame the regex
- The first value is Docker Hub path; for official images, replace
- For private images, the value is a semicolon-separated string with five values:
- The first value is URL for obtaining JWT token
- The second value is URL for listing all the tags
- The third value is username for the repository
- The fourth value is password for the repository
- The fifth value is regex again
- The key (
- Set the script as executable with
chmod u+x update-images.bash
- Run the script with
./update-images.bash