Explains how to configure environment variables when using Cloud Native Buildpacks lifecycle directly in GitLab CI without Docker or pack CLI. The key technique involves creating individual files for each environment variable in the ~/platform/env directory, where the filename is the variable name and the content is its value.

12m read time From codecentric.de
Post cover image
Table of contents
Cloud Native Buildpacks – blog seriesAn updated .gitlab-ci.yml to use the CNB lifecycle without DockerWhat's the issue with defining environment variables for the lifecycle?The solution: Create the environment variables using filesRun the CNB lifecycle using -platformOptional: Developing the solution locallyWrap up

Sort: