feat(master): suggest newer version tags for third-party images (#11) (#31)
Docker Build / docker (push) Successful in 45s
Docker Build / docker (push) Successful in 45s
This commit was merged in pull request #31.
This commit is contained in:
@@ -144,6 +144,15 @@ multi-arch image the digest is the index digest, the same one `docker inspect` s
|
||||
it) and starts no job for that digest again, whether the job
|
||||
failed or the user rolled back afterwards. If the service already had a job when the
|
||||
digest was found, the next cycle tries again.
|
||||
- **Newer tags.** For a service that follows a version-like tag (`1.27.3`, `v1.2.3`,
|
||||
`11.0-latest`; at least two numeric components), the master also lists the repo's tags
|
||||
once per cycle (`GET /v2/<repo>/tags/list`, which Docker Hub does not count as a pull) and
|
||||
suggests the highest tag with the same prefix, suffix and number of components and the
|
||||
same major number, for example `gitea:1.27.3` gives `1.28.0` but never `2.0.0`. The
|
||||
overview shows a "Newer tag" badge and the service page lists the tag under Versions, from
|
||||
where you deploy it. It is a suggestion only: nothing is deployed automatically, not even
|
||||
for **auto** services. Tags such as `latest`, `7` or `pg16` get no suggestion. A failed tag
|
||||
list keeps the old suggestion and is only logged (`poll_tags_failed`).
|
||||
- **What is not polled.** Services that follow no tag (`repo@digest`), `build:` services, and
|
||||
services without a registry digest (locally built images). The service page says which.
|
||||
Plain containers are polled, so their badge works, but jobs for them are refused.
|
||||
|
||||
Reference in New Issue
Block a user