paketo-buildpacks / github-config

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

Stack - Select on which registries to push stack images #950

Closed pacostas closed 2 months ago

pacostas commented 3 months ago

Summary

This PR adds an extra option, which specifies on which registries the stack 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 stack images 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 3 months ago

@mhdawson @ForestEckhardt

pacostas commented 2 months ago

@ForestEckhardt @robdimsdale I think this PR is ready to be landed.