Skip to content

test ENV

test ENV #10

Workflow file for this run

name: Publish docker image
# This is a test for now
on:
push:
branches: docker-container
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
strategy:
matrix:
ros2_version: ['foxy', 'humble', 'iron']
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
build-args:
ROS_VERSION=${{ matrix.ros2_version }}
push: true
tags: 3473f/ros2autodoc:${{ matrix.ros2_version }}