Skip to content

Commit

Permalink
ommit building all images in all matrix threads
Browse files Browse the repository at this point in the history
Signed-off-by: Oguz Ozturk <[email protected]>
  • Loading branch information
oguzkaganozt committed May 21, 2024
1 parent 7394b33 commit 253ecce
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/actions/docker-build-and-push-openadkit/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ inputs:
bake-target:
description: ""
required: true
bake-images:
description: ""
required: false
build-args:
description: ""
required: false
Expand Down Expand Up @@ -106,6 +109,8 @@ runs:
${{ steps.meta-visualizer.outputs.bake-file }}
${{ steps.meta-simulator.outputs.bake-file }}
provenance: false
targets: |
${{ inputs.bake-images }}
set: |
${{ inputs.build-args }}
Expand All @@ -120,6 +125,8 @@ runs:
${{ steps.meta-visualizer.outputs.bake-file }}
${{ steps.meta-simulator.outputs.bake-file }}
provenance: false
targets: |
${{ inputs.bake-images }}
set: |
${{ inputs.build-args }}
planning-control.output=type=docker,dest=/tmp/planning-control.tar
Expand Down
7 changes: 7 additions & 0 deletions .github/actions/docker-build-and-push/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ inputs:
bake-target:
description: ""
required: true
bake-images:
description: ""
required: false
build-args:
description: ""
required: false
Expand Down Expand Up @@ -117,6 +120,8 @@ runs:
${{ steps.meta-devel.outputs.bake-file }}
${{ steps.meta-runtime.outputs.bake-file }}
provenance: false
targets: |
${{ inputs.bake-images }}
set: |
${{ inputs.build-args }}
Expand All @@ -132,6 +137,8 @@ runs:
${{ steps.meta-devel.outputs.bake-file }}
${{ steps.meta-runtime.outputs.bake-file }}
provenance: false
targets: |
${{ inputs.bake-images }}
set: |
${{ inputs.build-args }}
base.output=type=docker,dest=/tmp/base.tar
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/docker-build-and-push-main-self-hosted.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ jobs:
lib_dir: aarch64
setup-args: --no-nvidia
additional-tag-suffix: ""
bake-images: [default]
- name: cuda
base_image_env: base_image
lib_dir: aarch64
additional-tag-suffix: -cuda
bake-images: [prebuilt, devel, runtime]
steps:
# https://github.com/actions/checkout/issues/211
- name: Change permission of workspace
Expand All @@ -72,9 +74,11 @@ jobs:
tag-suffix: ${{ matrix.additional-tag-suffix }}
tag-arch: -arm64
tag-prefix: ${{ needs.load-env.outputs.rosdistro }}
bake-images: ${{ matrix.bake-images }}
allow-push: true

- name: Build 'Openadkit'
if: ${{ matrix.name == 'no-cuda' }}
uses: ./.github/actions/docker-build-and-push-openadkit
with:
bake-target: openadkit
Expand All @@ -88,6 +92,7 @@ jobs:
tag-suffix: ${{ matrix.additional-tag-suffix }}
tag-arch: -arm64
tag-prefix: ${{ needs.load-env.outputs.rosdistro }}
bake-images: ${{ matrix.bake-images }}
allow-push: true

- name: Show disk space
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/docker-build-and-push-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ jobs:
lib_dir: x86_64
setup-args: --no-nvidia
additional-tag-suffix: ""
bake-images: [default]
- name: cuda
base_image_env: base_image
lib_dir: x86_64
additional-tag-suffix: -cuda
bake-images: [prebuilt, devel, runtime]
steps:
- name: Check out repository
uses: actions/checkout@v4
Expand All @@ -67,9 +69,11 @@ jobs:
tag-suffix: ${{ matrix.additional-tag-suffix }}
tag-arch: -amd64
tag-prefix: ${{ needs.load-env.outputs.rosdistro }}
bake-images: ${{ matrix.bake-images }}
allow-push: true

- name: Build 'Openadkit'
if: ${{ matrix.name == 'no-cuda' }}
uses: ./.github/actions/docker-build-and-push-openadkit
with:
bake-target: openadkit
Expand All @@ -83,6 +87,7 @@ jobs:
tag-suffix: ${{ matrix.additional-tag-suffix }}
tag-arch: -amd64
tag-prefix: ${{ needs.load-env.outputs.rosdistro }}
bake-images: ${{ matrix.bake-images }}
allow-push: true

- name: Show disk space
Expand Down

0 comments on commit 253ecce

Please sign in to comment.