Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add template params for platform info #1302

Merged
merged 1 commit into from
May 15, 2024

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
@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 <[email protected]>
@imjasonh imjasonh merged commit c42ee5f into ko-build:main May 15, 2024
21 checks passed
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