Skip to content

Commit

Permalink
push base-cuda image
Browse files Browse the repository at this point in the history
Signed-off-by: Yutaka Kondo <yutaka.kondo@youtalk.jp>
  • Loading branch information
youtalk committed Nov 11, 2024
1 parent de2f8c7 commit 75109fb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/actions/docker-build-and-push-cuda/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ runs:
run: echo "date=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
shell: bash

- name: Docker meta for autoware:base-cuda
id: meta-base-cuda
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository_owner }}/${{ inputs.bake-target }}
tags: |
type=raw,value=base-cuda-${{ inputs.platform }}
type=raw,value=base-cuda-${{ steps.date.outputs.date }}-${{ inputs.platform }}
bake-target: docker-metadata-action-base-cuda
flavor: |
latest=false
- name: Docker meta for autoware:universe-sensing-perception-devel-cuda
id: meta-universe-sensing-perception-devel-cuda
uses: docker/metadata-action@v5
Expand Down Expand Up @@ -112,6 +124,7 @@ runs:
push: true
files: |
docker/docker-bake-cuda.hcl
${{ steps.meta-base-cuda.outputs.bake-file }}
${{ steps.meta-universe-sensing-perception-devel-cuda.outputs.bake-file }}
${{ steps.meta-universe-sensing-perception-cuda.outputs.bake-file }}
${{ steps.meta-universe-devel-cuda.outputs.bake-file }}
Expand Down
8 changes: 8 additions & 0 deletions docker/docker-bake-cuda.hcl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
group "default" {
targets = [
"base-cuda",
"universe-sensing-perception-devel-cuda",
"universe-sensing-perception-cuda",
"universe-devel-cuda",
Expand All @@ -8,11 +9,18 @@ group "default" {
}

// For docker/metadata-action
target "docker-metadata-action-base-cuda" {}
target "docker-metadata-action-universe-sensing-perception-devel-cuda" {}
target "docker-metadata-action-universe-sensing-perception-cuda" {}
target "docker-metadata-action-universe-devel-cuda" {}
target "docker-metadata-action-universe-cuda" {}

target "base-cuda" {
inherits = ["docker-metadata-action-base-cuda"]
dockerfile = "docker/Dockerfile"
target = "base-cuda"
}

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

0 comments on commit 75109fb

Please sign in to comment.