docker-bake.hcl 970 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. group "default" {
  2. targets = ["image-local"]
  3. }
  4. // Special target: https://github.com/docker/metadata-action#bake-definition
  5. target "docker-metadata-action" {
  6. tags = ["registry:local"]
  7. }
  8. target "binary" {
  9. target = "binary"
  10. output = ["./bin"]
  11. }
  12. target "artifact" {
  13. target = "artifact"
  14. output = ["./bin"]
  15. }
  16. target "artifact-all" {
  17. inherits = ["artifact"]
  18. platforms = [
  19. "linux/amd64",
  20. "linux/arm/v6",
  21. "linux/arm/v7",
  22. "linux/arm64",
  23. "linux/ppc64le",
  24. "linux/s390x"
  25. ]
  26. }
  27. // Special target: https://github.com/docker/metadata-action#bake-definition
  28. target "docker-metadata-action" {
  29. tags = ["registry:local"]
  30. }
  31. target "image" {
  32. inherits = ["docker-metadata-action"]
  33. }
  34. target "image-local" {
  35. inherits = ["image"]
  36. output = ["type=docker"]
  37. }
  38. target "image-all" {
  39. inherits = ["image"]
  40. platforms = [
  41. "linux/amd64",
  42. "linux/arm/v6",
  43. "linux/arm/v7",
  44. "linux/arm64",
  45. "linux/ppc64le",
  46. "linux/s390x"
  47. ]
  48. }