-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (58 loc) · 2.08 KB
/
ros2.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: ROS2
on:
push:
branches-ignore:
- '*'
workflow_dispatch:
inputs:
docker-ros-git-ref:
description: "docker-ros Git reference"
default: main
jobs:
basic:
name: basic
runs-on: ubuntu-latest
steps:
- name: docker-ros
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: jenseng/dynamic-uses@v1
with:
uses: ika-rwth-aachen/docker-ros@${{ github.event.inputs.docker-ros-git-ref }}
with: '{ "base-image": "rwthika/ros2:latest", "command": "ros2 topic list", "platform": "amd64", "target": "dev,run", "build-context": "ros2", "image-tag": "ros2", "enable-industrial-ci": "true"}'
- name: docker-ros
if: ${{ github.event_name == 'push' }}
uses: ika-rwth-aachen/docker-ros@main
with:
base-image: rwthika/ros2:latest
command: ros2 topic list
platform: amd64
target: dev,run
build-context: ros2
image-tag: ros2
enable-industrial-ci: true
advanced:
name: advanced
runs-on: ubuntu-latest
strategy:
matrix:
target: [dev, run]
platform: [amd64, arm64]
steps:
- name: docker-ros
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: jenseng/dynamic-uses@v1
with:
uses: ika-rwth-aachen/docker-ros@${{ github.event.inputs.docker-ros-git-ref }}
with: '{ "base-image": "rwthika/ros2:latest", "command": "ros2 topic list", "platform": "${{ matrix.platform }}", "target": "${{ matrix.target }}", "build-context": "ros2", "image-tag": "ros2", "enable-industrial-ci": "true", "enable-singlearch-push": "true"}'
- name: docker-ros
if: ${{ github.event_name == 'push' }}
uses: ika-rwth-aachen/docker-ros@main
with:
base-image: rwthika/ros2:latest
command: ros2 topic list
platform: ${{ matrix.platform }}
target: ${{ matrix.target }}
build-context: ros2
image-tag: ros2
enable-industrial-ci: true
enable-singlearch-push: true