mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2025-02-04 12:22:50 +01:00
Improve caching
Inspired by: https://hackernoon.com/one-dockerfile-is-all-it-takes-how-i-fell-in-love-with-bake
This commit is contained in:
parent
23192aaa94
commit
fc85a1d8cb
3
.github/workflows/image.yml
vendored
3
.github/workflows/image.yml
vendored
|
@ -42,5 +42,4 @@ jobs:
|
||||||
files: build/docker-bake.hcl
|
files: build/docker-bake.hcl
|
||||||
push: true
|
push: true
|
||||||
set: |
|
set: |
|
||||||
*.cache-from=type=gha,scope=wordpress
|
*.cache-to=
|
||||||
*.cache-to=type=gha,scope=wordpress,mode=max
|
|
|
@ -20,6 +20,10 @@ target "5_9_0" {
|
||||||
args = {
|
args = {
|
||||||
WP_VERSION = "5.9.0"
|
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" {
|
target "5_9_1" {
|
||||||
|
@ -28,6 +32,10 @@ target "5_9_1" {
|
||||||
args = {
|
args = {
|
||||||
WP_VERSION = "5.9.1"
|
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" {
|
target "5_9_2" {
|
||||||
|
@ -36,6 +44,10 @@ target "5_9_2" {
|
||||||
args = {
|
args = {
|
||||||
WP_VERSION = "5.9.2"
|
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" {
|
target "5_9_3" {
|
||||||
|
@ -44,6 +56,10 @@ target "5_9_3" {
|
||||||
args = {
|
args = {
|
||||||
WP_VERSION = "5.9.3"
|
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" {
|
target "6_0_0" {
|
||||||
|
@ -52,6 +68,10 @@ target "6_0_0" {
|
||||||
args = {
|
args = {
|
||||||
WP_VERSION = "6.0.0"
|
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" {
|
target "6_0_1" {
|
||||||
|
@ -60,6 +80,10 @@ target "6_0_1" {
|
||||||
args = {
|
args = {
|
||||||
WP_VERSION = "6.0.1"
|
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" {
|
target "6_0_2" {
|
||||||
|
@ -68,6 +92,10 @@ target "6_0_2" {
|
||||||
args = {
|
args = {
|
||||||
WP_VERSION = "6.0.2"
|
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" {
|
target "6_0_3" {
|
||||||
|
@ -76,6 +104,10 @@ target "6_0_3" {
|
||||||
args = {
|
args = {
|
||||||
WP_VERSION = "6.0.3"
|
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" {
|
target "6_1_0" {
|
||||||
|
@ -84,6 +116,10 @@ target "6_1_0" {
|
||||||
args = {
|
args = {
|
||||||
WP_VERSION = "6.1.0"
|
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" {
|
target "6_1_1" {
|
||||||
|
@ -92,6 +128,10 @@ target "6_1_1" {
|
||||||
args = {
|
args = {
|
||||||
WP_VERSION = "6.1.1"
|
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" {
|
target "6_2_0" {
|
||||||
|
@ -100,4 +140,8 @@ target "6_2_0" {
|
||||||
args = {
|
args = {
|
||||||
WP_VERSION = "6.2.0"
|
WP_VERSION = "6.2.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Cache
|
||||||
|
cache-from = ["type=gha,scope=6_2_0"]
|
||||||
|
cache-to = ["type=gha,mode=max,scope=6_2_0"]
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user