Skip to content

Build/Publish ROS Docker Image #4

Build/Publish ROS Docker Image

Build/Publish ROS Docker Image #4

name: Build/Publish ROS Docker Image
on:
workflow_dispatch:
inputs:
build_type:
description: "Is it a \"development\" or a \"stable\" release?"
required: true
default: 'development'
type: choice
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: "ardent"
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"
repository_dispatch:
types: [rebuild]
pull_request:
types:
- closed
- opened
jobs:
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
platforms: ["linux/amd64", "linux/arm64"]
ros_distro: "humble"

Check failure on line 40 in .github/workflows/build-docker-image.yaml

View workflow run for this annotation

GitHub Actions / Build/Publish ROS Docker Image

Invalid workflow file

The workflow is not valid. .github/workflows/build-docker-image.yaml (Line: 40, Col: 21): Unexpected value 'humble'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build Docker Image
uses: husarion-ci/[email protected]
with:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
main_branch_name: ros2
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 }}