docker/bake-action v6.6.0
Use bake-action instead of build-and-push action.
This commit is contained in:
22
docker-bake.hcl
Normal file
22
docker-bake.hcl
Normal file
@@ -0,0 +1,22 @@
|
||||
group "default" {
|
||||
targets = [ "bookworm", "alpine" ]
|
||||
}
|
||||
|
||||
target "docker-metadata-action" {}
|
||||
target "docker-metadata-action-alpine" {}
|
||||
|
||||
target "_common" {
|
||||
args = {
|
||||
RUBY_VERSION = "3.4.3"
|
||||
}
|
||||
}
|
||||
|
||||
target "bookworm" {
|
||||
dockerfile = "./dockerfiles/bookworm.Dockerfile"
|
||||
inherits = [ "_common", "docker-metadata-action" ]
|
||||
}
|
||||
|
||||
target "alpine" {
|
||||
dockerfile = "./dockerfiles/alpine.Dockerfile"
|
||||
inherits = [ "_common", "docker-metadata-action-alpine" ]
|
||||
}
|
Reference in New Issue
Block a user