Skip to content

Export dependency on reach (#29) #68

Export dependency on reach (#29)

Export dependency on reach (#29) #68

Workflow file for this run

name: Ubuntu
on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- master
workflow_dispatch:
release:
types:
- released
jobs:
ci:
name: ${{ matrix.distro }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
distro: [foxy, humble, rolling]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
PREFIX: ${{ github.repository }}_
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Login to Github Packages
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker meta-information
id: meta
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
latest=false
prefix=
suffix=
tags: |
type=ref,event=branch,prefix=${{ matrix.distro }}-
type=semver,pattern={{major}}.{{minor}},prefix=${{ matrix.distro }}-
- name: Build repository
uses: 'ros-industrial/industrial_ci@master'
env:
ROS_DISTRO: ${{ matrix.distro }}
UPSTREAM_WORKSPACE: dependencies.repos
PREFIX: ${{ github.repository }}_
CMAKE_ARGS: '-DENABLE_TESTING=ON -DENABLE_RUN_TESTING=OFF'
DOCKER_IMAGE: 'ros:${{ matrix.distro }}'
AFTER_SCRIPT: 'rm -rf $BASEDIR/${PREFIX}upstream_ws/build $BASEDIR/${PREFIX}target_ws/build'
DOCKER_COMMIT: ${{ steps.meta.outputs.tags }}
- name: Push post-build Docker
if: ${{ github.ref == 'refs/heads/master' || github.event_name == 'release' || github.ref_type == 'tag' }}
run: docker push ${{ steps.meta.outputs.tags }}