Skip to content

Commit

Permalink
ci(docker): add rosdistro to image names (autowarefoundation#331)
Browse files Browse the repository at this point in the history
Signed-off-by: Kenji Miyake <[email protected]>
  • Loading branch information
kenji-miyake authored May 23, 2022
1 parent 63fd931 commit 1447719
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/actions/docker-build-and-push/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ inputs:
build-args:
description: ""
required: false
tag-prefix:
description: ""
required: false
tag-suffix:
description: ""
required: false
Expand Down Expand Up @@ -59,6 +62,7 @@ runs:
bake-target: docker-metadata-action-devel
flavor: |
latest=false
prefix=${{ inputs.tag-prefix }}
suffix=${{ inputs.tag-suffix }}
- name: Docker meta for prebuilt
Expand All @@ -70,6 +74,7 @@ runs:
bake-target: docker-metadata-action-prebuilt
flavor: |
latest=false
prefix=${{ inputs.tag-prefix }}
suffix=-prebuilt${{ inputs.tag-suffix }}
- name: Login to GitHub Container Registry
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker-build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
*.args.CUDA_IMAGE_TAG=${{ env.cuda_image_tag }}
*.args.CUDNN_VERSION=${{ env.cudnn_version }}
*.args.TENSORRT_VERSION=${{ env.tensorrt_version }}
tag-prefix: ${{ env.rosdistro }}-
tag-suffix: -amd64

- name: Show disk space
Expand Down
4 changes: 2 additions & 2 deletions docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ docker buildx bake --load --progress=plain -f "$SCRIPT_DIR/autoware-universe/doc
--set "*.args.CUDA_IMAGE_TAG=$cuda_image_tag" \
--set "*.args.CUDNN_VERSION=$cudnn_version" \
--set "*.args.TENSORRT_VERSION=$tensorrt_version" \
--set "devel.tags=ghcr.io/autowarefoundation/autoware-universe:latest" \
--set "prebuilt.tags=ghcr.io/autowarefoundation/autoware-universe:latest-prebuilt"
--set "devel.tags=ghcr.io/autowarefoundation/autoware-universe:$rosdistro-latest" \
--set "prebuilt.tags=ghcr.io/autowarefoundation/autoware-universe:$rosdistro-latest-prebuilt"

0 comments on commit 1447719

Please sign in to comment.