-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad89d1e
commit 78bae2d
Showing
1 changed file
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
--- | ||
name: Build Docker | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
build_type: | ||
description: Is it a "development" or a "stable" release? | ||
required: true | ||
type: string | ||
default: development | ||
target_distro: | ||
description: In case of "stable" release specify the ROS distro of the existing docker image (eg. | ||
humble) | ||
type: string | ||
default: humble | ||
target_release: | ||
description: In case of "stable" release specify the version of the existing docker image (eg. | ||
1.0.12) | ||
type: string | ||
default: 0.0.0 | ||
target_date: | ||
description: In case of "stable" release specify the date of the existing docker image in format | ||
YYYYMMDD (eg. 20220124) | ||
type: string | ||
default: '20131206' | ||
workflow_dispatch: | ||
inputs: | ||
build_type: | ||
description: Is it a "development" or a "stable" release? | ||
required: true | ||
type: choice | ||
default: development | ||
options: | ||
- development | ||
- stable | ||
target_distro: | ||
description: In case of "stable" release specify the ROS distro of the existing docker image (eg. | ||
humble) | ||
type: string | ||
default: humble | ||
target_release: | ||
description: In case of "stable" release specify the version of the existing docker image (eg. | ||
1.0.12) | ||
type: string | ||
default: 0.0.0 | ||
target_date: | ||
description: In case of "stable" release specify the date of the existing docker image in format | ||
YYYYMMDD (eg. 20220124) | ||
type: string | ||
default: '20131206' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- dockerfile: ./docker/Dockerfile.hardware | ||
platforms: linux/arm64 | ||
ros_distro: humble | ||
- dockerfile: ./docker/Dockerfile.simulation | ||
repo_name: panther-gazebo | ||
platforms: linux/amd64 | ||
ros_distro: humble | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build Docker Image | ||
uses: husarion-ci/[email protected] | ||
with: | ||
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }} | ||
main_branch_name: ros2 | ||
dockerfile: ${{ matrix.dockerfile }} | ||
repo_name: ${{ matrix.repo_name }} | ||
build_type: ${{ inputs.build_type }} | ||
ros_distro: ${{ matrix.ros_distro }} | ||
platforms: ${{ matrix.platforms }} | ||
# variables important only for stable release | ||
target_distro: ${{ inputs.target_distro }} | ||
target_release: ${{ inputs.target_release }} | ||
target_date: ${{ inputs.target_date }} |