Skip to content

Detect base image changes and trigger dockerhub rebuilds #362

@mikaelarguedas

Description

@mikaelarguedas

Follow-up of #312 (comment)

Since Dockerhub stopped triggering repos that are using official images as base image.
Autobuilds are also disabled due to dockerhub not taking the image layer tree into account for building causing e.g. desktop-full image being built before desktop.
As a result images in osrf/ros are never triggered other than manually.

Feature request:

  • Detect if any currently active image is outdated
  • Trigger rebuild of impacted images

Implementation considerations:

Logic:

  • Get the list of currently active images
  • detect if their base image is in "osrf" or "library" org
  • if base image in library: get the digest of base image
  • verify that the digest of base image is in the layer list of current image
  • if not: image outdated, trigger rebuild

Implementation details:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions