docker-bake.hcl 646 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #variable "REPO" {
  2. # default = "dockage/alpine"
  3. #}
  4. variable "ALPINE_VERSION" {
  5. default = ""
  6. }
  7. #function "tag" {
  8. # params = [tag]
  9. # result = ["${REPO}:${tag}"]
  10. #}
  11. group "default" {
  12. targets = ["base"]
  13. }
  14. target "base" {
  15. context = "${ALPINE_VERSION}/"
  16. dockerfile = "${ALPINE_VERSION}/Dockerfile"
  17. target = "base"
  18. # tags = tag("${ALPINE_VERSION}")
  19. platforms = [
  20. "linux/386",
  21. "linux/amd64",
  22. "linux/arm/v6",
  23. "linux/arm/v7",
  24. "linux/arm64/v8",
  25. "linux/ppc64le",
  26. "linux/s390x"
  27. ]
  28. }
  29. target "openrc" {
  30. inherits = ["base"]
  31. target = "openrc"
  32. # tags = tag("${ALPINE_VERSION}-openrc")
  33. }