docker-bake.hcl 528 B

123456789101112131415161718192021222324252627282930
  1. variable "CONTEXT" {
  2. default = "."
  3. }
  4. // Special target: https://github.com/docker/metadata-action#bake-definition
  5. target "docker-metadata-action" {}
  6. group "default" {
  7. targets = ["base"]
  8. }
  9. target "base" {
  10. inherits = ["docker-metadata-action"]
  11. context = "${CONTEXT}/"
  12. target = "base"
  13. platforms = [
  14. "linux/386",
  15. "linux/amd64",
  16. "linux/arm/v6",
  17. "linux/arm/v7",
  18. "linux/arm64/v8",
  19. "linux/ppc64le",
  20. "linux/s390x"
  21. ]
  22. }
  23. target "openrc" {
  24. inherits = ["base"]
  25. target = "openrc"
  26. }