forked from ros-industrial/reach
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (53 loc) · 1.53 KB
/
focal_noetic.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
name: Focal Noetic
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: '0 5 * * *'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
ROS_DISTRO: noetic
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
ROS_REPO: main
PREFIX: ${{ github.repository }}_
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 }}