-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.15 KB
/
build.yaml
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
name: Build ROS package
on:
push:
branches: [main]
jobs:
build-package:
strategy:
fail-fast: false
matrix:
include:
- ros-distro: melodic
ros-version: 1
- ros-distro: noetic
ros-version: 1
- ros-distro: dashing
ros-version: 2
- ros-distro: eloquent
ros-version: 2
- ros-distro: foxy
ros-version: 2
- ros-distro: galactic
ros-version: 2
- ros-distro: humble
ros-version: 2
- ros-distro: iron
ros-version: 2
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- run: |
docker build --tag ghcr.io/raultapia/asap:${{ matrix.ros-distro }} --build-arg ROS_DISTRO=${{ matrix.ros-distro }} --build-arg ROS_VERSION=${{ matrix.ros-version }} .
docker push ghcr.io/raultapia/asap:${{ matrix.ros-distro }}