added a version of the dockerfile for ROS Kinetic that uses an nvida/… #16
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: Docker Image CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Load environment variables | |
uses: c-py/action-dotenv-to-setenv@v2 | |
with: | |
env-file: ./.env | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push kinetic | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
platforms: linux/arm64/v8,linux/amd64 | |
push: true | |
tags: ripl/libbot2-ros:kinetic | |
file: Dockerfile.kinetic | |
- name: Build and push previous | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
platforms: linux/arm64/v8,linux/amd64 | |
push: true | |
file: Dockerfile.${{ env.ROS_VERSION_PREVIOUS }} | |
tags: ripl/libbot2-ros:${{ env.ROS_VERSION_PREVIOUS }} | |
- name: Build and push latest | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
platforms: linux/arm64/v8,linux/amd64 | |
push: true | |
tags: ripl/libbot2-ros:latest, ripl/libbot2-ros:${{ env.ROS_VERSION_LATEST }} | |
file: Dockerfile.${{ env.ROS_VERSION_LATEST }} |