Skip to content

Release promotion pipeline should update image-info with the latest Dockerfile checksums from the main branch #6559

@lbussell

Description

@lbussell

See https://github.com/dotnet/dotnet-docker-internal/issues/7409. The purpose of this change is to prevent Dockerfile cache invalidation when release images that were built internally.

The current sequence of events is something like this:

  • Public PR to dotnet-docker main branch is merged.
  • dotnet-docker-release-promotion pipeline is queued.
  • When the release-promotion pipeline finishes, it publishes a new image-info.json file to the dotnet/versions repo.
    • The Dockerfile commit URLs in this file point to the git commit sha of the internal branch where the images were built from.

Instead, before we publish the image info file, we should replace the references to that internal commit with a reference to the latest commit of the dotnet-docker main branch.

Metadata

Metadata

Assignees

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions