Skip to content

Commit

Permalink
remove inherits
Browse files Browse the repository at this point in the history
  • Loading branch information
youtalk committed May 14, 2024
1 parent 28455b6 commit 1db413c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions docker/autoware-openadk/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,23 @@ group "default" {
targets = ["prebuilt", "devel", "runtime"]
}

// For docker/metadata-action
target "docker-metadata-action-prebuilt" {}
target "docker-metadata-action-devel" {}
target "docker-metadata-action-runtime" {}

target "prebuilt" {
inherits = ["docker-metadata-action-prebuilt"]
dockerfile = "docker/autoware-openadk/Dockerfile"
target = "prebuilt"
cache-from = ["type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}:buildcache"]
cache-to = ["type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}:buildcache,mode=max"]
}

target "devel" {
inherits = ["docker-metadata-action-devel"]
dockerfile = "docker/autoware-openadk/Dockerfile"
target = "devel"
cache-from = ["type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}:buildcache"]
cache-to = ["type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}:buildcache,mode=max"]
}

target "runtime" {
inherits = ["docker-metadata-action-runtime"]
dockerfile = "docker/autoware-openadk/Dockerfile"
target = "runtime"
cache-from = ["type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}:buildcache"]
cache-to = ["type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}:buildcache,mode=max"]
}

0 comments on commit 1db413c

Please sign in to comment.