mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2024-11-27 06:30:07 +01:00
xZero707
fc85a1d8cb
Inspired by: https://hackernoon.com/one-dockerfile-is-all-it-takes-how-i-fell-in-love-with-bake
147 lines
3.5 KiB
HCL
147 lines
3.5 KiB
HCL
group "default" {
|
|
targets = ["5_9_0", "5_9_1", "5_9_2", "5_9_3", "6_0_0", "6_0_1", "6_0_2", "6_0_3", "6_1_0", "6_1_1", "6_2_0"]
|
|
}
|
|
|
|
target "build-dockerfile" {
|
|
dockerfile = "Dockerfile"
|
|
}
|
|
|
|
target "build-platforms" {
|
|
platforms = ["linux/amd64", "linux/armhf", "linux/aarch64"]
|
|
}
|
|
|
|
target "build-common" {
|
|
pull = true
|
|
}
|
|
|
|
target "5_9_0" {
|
|
inherits = ["build-dockerfile", "build-platforms", "build-common"]
|
|
tags = ["docker.io/nlss/wordpress:5.9.0"]
|
|
args = {
|
|
WP_VERSION = "5.9.0"
|
|
}
|
|
|
|
# Cache
|
|
cache-from = ["type=gha,scope=5_9_0"]
|
|
cache-to = ["type=gha,mode=max,scope=5_9_0"]
|
|
}
|
|
|
|
target "5_9_1" {
|
|
inherits = ["build-dockerfile", "build-platforms", "build-common"]
|
|
tags = ["docker.io/nlss/wordpress:5.9.1"]
|
|
args = {
|
|
WP_VERSION = "5.9.1"
|
|
}
|
|
|
|
# Cache
|
|
cache-from = ["type=gha,scope=5_9_1"]
|
|
cache-to = ["type=gha,mode=max,scope=5_9_1"]
|
|
}
|
|
|
|
target "5_9_2" {
|
|
inherits = ["build-dockerfile", "build-platforms", "build-common"]
|
|
tags = ["docker.io/nlss/wordpress:5.9.2"]
|
|
args = {
|
|
WP_VERSION = "5.9.2"
|
|
}
|
|
|
|
# Cache
|
|
cache-from = ["type=gha,scope=5_9_2"]
|
|
cache-to = ["type=gha,mode=max,scope=5_9_2"]
|
|
}
|
|
|
|
target "5_9_3" {
|
|
inherits = ["build-dockerfile", "build-platforms", "build-common"]
|
|
tags = ["docker.io/nlss/wordpress:5", "docker.io/nlss/wordpress:5.9", "docker.io/nlss/wordpress:5.9.3"]
|
|
args = {
|
|
WP_VERSION = "5.9.3"
|
|
}
|
|
|
|
# Cache
|
|
cache-from = ["type=gha,scope=5_9_3"]
|
|
cache-to = ["type=gha,mode=max,scope=5_9_3"]
|
|
}
|
|
|
|
target "6_0_0" {
|
|
inherits = ["build-dockerfile", "build-platforms", "build-common"]
|
|
tags = ["docker.io/nlss/wordpress:6.0.0"]
|
|
args = {
|
|
WP_VERSION = "6.0.0"
|
|
}
|
|
|
|
# Cache
|
|
cache-from = ["type=gha,scope=6_0_0"]
|
|
cache-to = ["type=gha,mode=max,scope=6_0_0"]
|
|
}
|
|
|
|
target "6_0_1" {
|
|
inherits = ["build-dockerfile", "build-platforms", "build-common"]
|
|
tags = ["docker.io/nlss/wordpress:6.0.1"]
|
|
args = {
|
|
WP_VERSION = "6.0.1"
|
|
}
|
|
|
|
# Cache
|
|
cache-from = ["type=gha,scope=6_0_1"]
|
|
cache-to = ["type=gha,mode=max,scope=6_0_1"]
|
|
}
|
|
|
|
target "6_0_2" {
|
|
inherits = ["build-dockerfile", "build-platforms", "build-common"]
|
|
tags = ["docker.io/nlss/wordpress:6.0.2"]
|
|
args = {
|
|
WP_VERSION = "6.0.2"
|
|
}
|
|
|
|
# Cache
|
|
cache-from = ["type=gha,scope=6_0_2"]
|
|
cache-to = ["type=gha,mode=max,scope=6_0_2"]
|
|
}
|
|
|
|
target "6_0_3" {
|
|
inherits = ["build-dockerfile", "build-platforms", "build-common"]
|
|
tags = ["docker.io/nlss/wordpress:6.0.3"]
|
|
args = {
|
|
WP_VERSION = "6.0.3"
|
|
}
|
|
|
|
# Cache
|
|
cache-from = ["type=gha,scope=6_0_3"]
|
|
cache-to = ["type=gha,mode=max,scope=6_0_3"]
|
|
}
|
|
|
|
target "6_1_0" {
|
|
inherits = ["build-dockerfile", "build-platforms", "build-common"]
|
|
tags = ["docker.io/nlss/wordpress:6.1.0"]
|
|
args = {
|
|
WP_VERSION = "6.1.0"
|
|
}
|
|
|
|
# Cache
|
|
cache-from = ["type=gha,scope=6_1_0"]
|
|
cache-to = ["type=gha,mode=max,scope=6_1_0"]
|
|
}
|
|
|
|
target "6_1_1" {
|
|
inherits = ["build-dockerfile", "build-platforms", "build-common"]
|
|
tags = ["docker.io/nlss/wordpress:6.1", "docker.io/nlss/wordpress:6.1.1"]
|
|
args = {
|
|
WP_VERSION = "6.1.1"
|
|
}
|
|
|
|
# Cache
|
|
cache-from = ["type=gha,scope=6_1_1"]
|
|
cache-to = ["type=gha,mode=max,scope=6_1_1"]
|
|
}
|
|
|
|
target "6_2_0" {
|
|
inherits = ["build-dockerfile", "build-platforms", "build-common"]
|
|
tags = ["docker.io/nlss/wordpress:6", "docker.io/nlss/wordpress:6.2", "docker.io/nlss/wordpress:6.2.0", "docker.io/nlss/wordpress:latest"]
|
|
args = {
|
|
WP_VERSION = "6.2.0"
|
|
}
|
|
|
|
# Cache
|
|
cache-from = ["type=gha,scope=6_2_0"]
|
|
cache-to = ["type=gha,mode=max,scope=6_2_0"]
|
|
} |