Skip to content

Commit

Permalink
Add docker metadata target for integration with docker/metadata-action
Browse files Browse the repository at this point in the history
  • Loading branch information
pschork committed Sep 14, 2024
1 parent 8c14aef commit 360a477
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -66,37 +66,47 @@ group "node-group-release" {
targets = ["node-release", "nodeplugin-release"]
}

# DOCKER METADATA TARGET
# See https://github.com/docker/metadata-action?tab=readme-ov-file#bake-definition

target "docker-metadata-action" {}

# DISPERSER TARGETS

target "batcher" {
inherits = ["docker-metadata-action"]
context = "."
dockerfile = "./Dockerfile"
target = "batcher"
tags = ["${REGISTRY}/${BATCHER_PATH}:${BUILD_TAG}"]
}

target "disperser" {
inherits = ["docker-metadata-action"]
context = "."
dockerfile = "./Dockerfile"
target = "apiserver"
tags = ["${REGISTRY}/${DISPERSER_PATH}:${BUILD_TAG}"]
}

target "encoder" {
inherits = ["docker-metadata-action"]
context = "."
dockerfile = "./Dockerfile"
target = "encoder"
tags = ["${REGISTRY}/${ENCODER_PATH}:${BUILD_TAG}"]
}

target "retriever" {
inherits = ["docker-metadata-action"]
context = "."
dockerfile = "./Dockerfile"
target = "retriever"
tags = ["${REGISTRY}/${RETRIEVER_PATH}:${BUILD_TAG}"]
}

target "churner" {
inherits = ["docker-metadata-action"]
context = "."
dockerfile = "./Dockerfile"
target = "churner"
Expand All @@ -106,6 +116,7 @@ target "churner" {
# NODE TARGETS

target "node" {
inherits = ["docker-metadata-action"]
context = "."
dockerfile = "./Dockerfile"
target = "node"
Expand All @@ -118,6 +129,7 @@ target "node" {
}

target "nodeplugin" {
inherits = ["docker-metadata-action"]
context = "."
dockerfile = "./Dockerfile"
target = "nodeplugin"
Expand All @@ -139,3 +151,4 @@ target "nodeplugin-release" {
inherits = ["nodeplugin", "_release"]
tags = ["${REGISTRY}/opr-nodeplugin:${BUILD_TAG}"]
}

0 comments on commit 360a477

Please sign in to comment.