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

[Docs]: provide sample docker-bake.override.hcl file #151

Open
smiyc opened this issue Feb 10, 2025 · 0 comments
Open

[Docs]: provide sample docker-bake.override.hcl file #151

smiyc opened this issue Feb 10, 2025 · 0 comments

Comments

@smiyc
Copy link
Contributor

smiyc commented Feb 10, 2025

since I'm creating my images manually I'm working on an override file

I managed to create the following override file

variable "environment" {
  default = "production"
}

variable "registry" {
  default = "your.repo.url"
}

fullname = ( environment == "testing") ? "${registry}/xxx/yyyy/cnpg" : "${registry}/xxx/zzzz/cnpg"

That's working fine, but I can't create an override for the target matrix.

What I want to achieve is to build

  • standard images
  • for all pgVersions
  • based on bookworm for
  • platform linux/amd64
  1. how would such target matrix override look like
  2. would you accept an sample override PR?
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

No branches or pull requests

1 participant