paketo-buildpacks / github-config

Common repository configuration
Apache License 2.0
8 stars 12 forks source link

Conditionally selecting on which registry to push #949

Closed pacostas closed 4 months ago

pacostas commented 5 months ago

Summary

This PR adds an extra option, which specifies on which registry the implementation should push. Specifically, if on the root directory of the implementation, there is a file called registries.json with the below content

{
  "dockerhub": true,
  "GCR": false
}

it means that the action will push the image to dockerhub but NOT to GCR.

In case the registries.json file does not exist, it fallbacks to the current behavior which is to push on both registries.

In case where an attribute is NOT specified, then the default value is true.

Use Cases

This is useful for projects being under paketo-community organization, where GCR is not available.

Checklist

pacostas commented 5 months ago

@mhdawson @ForestEckhardt

pacostas commented 4 months ago

@robdimsdale Can you land this one?