Skip to content

Commit

Permalink
add to bakefile and workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Oguz Ozturk <[email protected]>
  • Loading branch information
oguzkaganozt committed Sep 19, 2024
1 parent a4e40d8 commit 9f510ff
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/actions/docker-build-and-push/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,30 @@ runs:
bake-target: docker-metadata-action-universe-planning-control
flavor: |
latest=false
- name: Docker meta for autoware:universe-vehicle-system-devel
id: meta-universe-vehicle-system-devel
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository_owner }}/${{ inputs.bake-target }}
tags: |
type=raw,value=universe-vehicle-system-devel${{ inputs.tag-suffix && '-' }}${{ inputs.tag-suffix }}
type=raw,value=universe-vehicle-system-devel${{ inputs.tag-suffix && '-' }}${{ inputs.tag-suffix }}-${{ steps.date.outputs.date }}
bake-target: docker-metadata-action-universe-vehicle-system-devel
flavor: |
latest=false
- name: Docker meta for autoware:universe-vehicle-system
id: meta-universe-vehicle-system
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository_owner }}/${{ inputs.bake-target }}
tags: |
type=raw,value=universe-vehicle-system${{ inputs.tag-suffix && '-' }}${{ inputs.tag-suffix }}
type=raw,value=universe-vehicle-system${{ inputs.tag-suffix && '-' }}${{ inputs.tag-suffix }}-${{ steps.date.outputs.date }}
bake-target: docker-metadata-action-universe-vehicle-system
flavor: |
latest=false
- name: Docker meta for autoware:universe-devel
id: meta-universe-devel
Expand Down
16 changes: 16 additions & 0 deletions docker/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ group "default" {
"universe-localization-mapping",
"universe-planning-control-devel",
"universe-planning-control",
"universe-vehicle-system-devel",
"universe-vehicle-system",
"universe-devel",
"universe"
]
Expand All @@ -22,6 +24,8 @@ target "docker-metadata-action-universe-localization-mapping-devel" {}
target "docker-metadata-action-universe-localization-mapping" {}
target "docker-metadata-action-universe-planning-control-devel" {}
target "docker-metadata-action-universe-planning-control" {}
target "docker-metadata-action-universe-vehicle-system-devel" {}
target "docker-metadata-action-universe-vehicle-system" {}
target "docker-metadata-action-universe-devel" {}
target "docker-metadata-action-universe" {}

Expand Down Expand Up @@ -73,6 +77,18 @@ target "universe-planning-control" {
target = "universe-planning-control"
}

target "universe-vehicle-system-devel" {
inherits = ["docker-metadata-action-universe-vehicle-system-devel"]
dockerfile = "docker/Dockerfile"
target = "universe-vehicle-system-devel"
}

target "universe-vehicle-system" {
inherits = ["docker-metadata-action-universe-vehicle-system"]
dockerfile = "docker/Dockerfile"
target = "universe-vehicle-system"
}

target "universe-devel" {
inherits = ["docker-metadata-action-universe-devel"]
dockerfile = "docker/Dockerfile"
Expand Down

0 comments on commit 9f510ff

Please sign in to comment.