Skip to content

Commit

Permalink
replace to json
Browse files Browse the repository at this point in the history
  • Loading branch information
youtalk committed May 14, 2024
1 parent 1db413c commit c76452e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
with:
context: .
push: true
file: docker/autoware-openadk/docker-bake.hcl
file: docker/autoware-openadk/docker-bake.json
targets: default
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
24 changes: 0 additions & 24 deletions docker/autoware-openadk/docker-bake.hcl

This file was deleted.

30 changes: 30 additions & 0 deletions docker/autoware-openadk/docker-bake.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"group": {
"default": {
"targets": ["prebuilt", "devel", "runtime"]
}
},
"target": {
"prebuilt": {
"context": ".",
"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"]
},
"devel": {
"context": ".",
"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"]
},
"runtime": {
"context": ".",
"dockerfile": "docker/autoware-openadk/Dockerfile",
"target": "runtiem",
"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 c76452e

Please sign in to comment.