Focal Noetic #288
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
name: Focal Noetic | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '*' | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
schedule: | |
- cron: '0 5 * * *' | |
release: | |
types: | |
- released | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
ROS_DISTRO: noetic | |
PREFIX: ${{ github.repository }}_ | |
jobs: | |
ci: | |
strategy: | |
fail-fast: false | |
runs-on: ubuntu-latest | |
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=${{ env.ROS_DISTRO }}- | |
type=semver,pattern={{major}}.{{minor}},prefix=${{ env.ROS_DISTRO }}- | |
- name: Build repository | |
uses: 'ros-industrial/industrial_ci@master' | |
env: | |
CI_NAME: focal | |
OS_NAME: ubuntu | |
OS_CODE_NAME: focal | |
UPSTREAM_WORKSPACE: dependencies.repos | |
PREFIX: ${{ github.repository }}_ | |
CMAKE_ARGS: '-DENABLE_TESTING=ON -DENABLE_RUN_TESTING=OFF' | |
DOCKER_IMAGE: 'ros:${{ env.ROS_DISTRO }}' | |
DOCKER_COMMIT: ${{ steps.meta.outputs.tags }} | |
- name: Push post-build Docker | |
if: ${{ github.ref == 'refs/heads/master' || github.event_name == 'release' }} | |
run: docker push ${{ steps.meta.outputs.tags }} |