Skip to content

feat: add template params for platform info#1302

Merged
imjasonh merged 1 commit intoko-build:mainfrom
nmittler:template-params
May 15, 2024
Merged

feat: add template params for platform info#1302
imjasonh merged 1 commit intoko-build:mainfrom
nmittler:template-params

Conversation

@nmittler
Copy link
Contributor

@nmittler nmittler commented May 9, 2024

This restructures the build logic in order to expand the buildArgs to include:

  • Env: the actual environment variables used to execute the build. This includes platform info (e.g. GOOS, GOARCH).
  • GoEnv: the map of variables from go env, but overridden with any platform-specific values defined in Env.

Fixes #1301

@nmittler nmittler changed the title Include build info in template params feat: add build info to template params May 9, 2024
@nmittler nmittler force-pushed the template-params branch from 9786ff3 to 01406de Compare May 9, 2024 23:07
@cpanato
Copy link
Member

cpanato commented May 10, 2024

@nmittler please sign the DCO

@nmittler
Copy link
Contributor Author

@cpanato done

@nmittler
Copy link
Contributor Author

@cpanato let me know if there's anything else I need to do. I've noticed a number of open PRs that seem to be stalled for over a month. It would be great to get this change in.

@nmittler nmittler changed the title feat: add build info to template params feat: add template params for platform info May 12, 2024
@nmittler nmittler force-pushed the template-params branch 3 times, most recently from 0db2a19 to 9902785 Compare May 15, 2024 17:51
This restructures the build logic in order to expand the buildArgs to include:

- `Env`: the actual environment variables used to execute the build. This includes platform info (e.g. `GOOS`, `GOARCH`).
- `GoEnv`: the map of variables from `go env`, but overridden with any platform-specific values defined in `Env`.

Fixes ko-build#1301

Signed-off-by: Nathan Mittler <nmittler@aviatrix.com>
@imjasonh imjasonh merged commit c42ee5f into ko-build:main May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add platform template parameters

3 participants