Skip to content

Commit

Permalink
Merge pull request #398 from edmorley/cnb-stack-id-platform-0.12
Browse files Browse the repository at this point in the history
[platform/0.12] Correct specification for deprecated `CNB_STACK_ID`
  • Loading branch information
natalieparellano authored Apr 9, 2024
2 parents 077230d + b0af0fe commit 4ca3b27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion platform.md
Original file line number Diff line number Diff line change
Expand Up @@ -1555,10 +1555,13 @@ _Deprecated in Platform API 0.12._

For compatibility with older platforms and older buildpacks, base image authors SHOULD ensure for build images and run images:

- The image config's `Env` field has the environment variable `CNB_STACK_ID` set to the stack ID.
- The image config's `Label` field has the label `io.buildpacks.stack.id` set to the stack ID.
- The image config's `Label` field has the label `io.buildpacks.stack.mixins` set to a JSON array containing mixin names for each mixin applied to the image.

And for build images:

- The image config's `Env` field has the environment variable `CNB_STACK_ID` set to the stack ID.

Where `CNB_STACK_ID` SHALL be directly inherited by buildpacks without modification.

To upgrade, the platform SHOULD upgrade all buildpacks to use Buildpack API `0.10` or greater.
Expand Down

0 comments on commit 4ca3b27

Please sign in to comment.