Skip to content

build and publish docker images #9

build and publish docker images

build and publish docker images #9

---
name: build and publish docker images
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * FRI'
jobs:
build_images_debian11:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
matrix:
ros_distro: ['humble', 'iron']
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v3
with:
push: true
file: Dockerfile.debian11
tags: ghcr.io/${{ github.repository_owner }}/ros:${{ matrix.ros_distro }}-debian
build-args: |
ROS_DISTRO=${{ matrix.ros_distro }}
build_images_debian12:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
matrix:
ros_distro: ['rolling']
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v3
with:
push: true
file: Dockerfile.debian12
tags: ghcr.io/${{ github.repository_owner }}/ros:${{ matrix.ros_distro }}-debian
build-args: |
ROS_DISTRO=${{ matrix.ros_distro }}