Skip to content

Commit

Permalink
workflows for docker push + README badges
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzs13 committed Dec 28, 2024
1 parent f6c1dd5 commit db2d65d
Show file tree
Hide file tree
Showing 8 changed files with 206 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/foxy-docker-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Foxy Docker Push

on:
push:
branches: [main]
workflow_dispatch:

jobs:
foxy_docker_push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- 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 docker
uses: docker/build-push-action@v6
with:
build-args: ROS_DISTRO=foxy
push: true
tags: mgons/piper_ros:foxy
29 changes: 29 additions & 0 deletions .github/workflows/galactic-docker-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Galactic Docker Push

on:
push:
branches: [main]
workflow_dispatch:

jobs:
galactic_docker_push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- 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 docker
uses: docker/build-push-action@v6
with:
build-args: ROS_DISTRO=galactic
push: true
tags: mgons/piper_ros:galactic
29 changes: 29 additions & 0 deletions .github/workflows/humble-docker-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Humble Docker Push

on:
push:
branches: [main]
workflow_dispatch:

jobs:
humble_docker_push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- 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 docker
uses: docker/build-push-action@v6
with:
build-args: ROS_DISTRO=humble
push: true
tags: mgons/piper_ros:humble
29 changes: 29 additions & 0 deletions .github/workflows/iron-docker-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Iron Docker Push

on:
push:
branches: [main]
workflow_dispatch:

jobs:
iron_docker_push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- 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 docker
uses: docker/build-push-action@v6
with:
build-args: ROS_DISTRO=iron
push: true
tags: mgons/piper_ros:iron
19 changes: 19 additions & 0 deletions .github/workflows/jazzy-docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Jazzy Docker Build

on: [push, pull_request]

jobs:
jazzy_docker_build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push
uses: docker/build-push-action@v6
with:
build-args: ROS_DISTRO=jazzy
push: false
29 changes: 29 additions & 0 deletions .github/workflows/jazzy-docker-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Jazzy Docker Push

on:
push:
branches: [main]
workflow_dispatch:

jobs:
jazzy_docker_push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- 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 docker
uses: docker/build-push-action@v6
with:
build-args: ROS_DISTRO=jazzy
push: true
tags: mgons/piper_ros:jazzy
29 changes: 29 additions & 0 deletions .github/workflows/rolling-docker-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Rolling Docker Push

on:
push:
branches: [main]
workflow_dispatch:

jobs:
rolling_docker_push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- 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 docker
uses: docker/build-push-action@v6
with:
build-args: ROS_DISTRO=rolling
push: true
tags: mgons/piper_ros:rolling
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

This repositiory provides a set of ROS 2 packages for audio. It provides a C++ version to capture and play audio data using PortAudio.

[![License: MIT](https://img.shields.io/badge/GitHub-MIT-informational)](https://opensource.org/license/mit) [![GitHub release](https://img.shields.io/github/release/mgonzs13/audio_common.svg)](https://github.com/mgonzs13/audio_common/releases) [![Code Size](https://img.shields.io/github/languages/code-size/mgonzs13/audio_common.svg?branch=main)](https://github.com/mgonzs13/audio_common?branch=main) [![Last Commit](https://img.shields.io/github/last-commit/mgonzs13/audio_common.svg)](https://github.com/mgonzs13/audio_common/commits/main) [![GitHub issues](https://img.shields.io/github/issues/mgonzs13/audio_common)](https://github.com/mgonzs13/audio_common/issues) [![GitHub pull requests](https://img.shields.io/github/issues-pr/mgonzs13/audio_common)](https://github.com/mgonzs13/audio_common/pulls) [![Contributors](https://img.shields.io/github/contributors/mgonzs13/audio_common.svg)](https://github.com/mgonzs13/audio_common/graphs/contributors) [![Python Formatter Check](https://github.com/mgonzs13/audio_common/actions/workflows/python-formatter.yml/badge.svg?branch=main)](https://github.com/mgonzs13/audio_common/actions/workflows/python-formatter.yml?branch=main) [![C++ Formatter Check](https://github.com/mgonzs13/audio_common/actions/workflows/cpp-formatter.yml/badge.svg?branch=main)](https://github.com/mgonzs13/audio_common/actions/workflows/cpp-formatter.yml?branch=main)

<div align="center">

| ROS 2 Distro | Branch | Build status | Docker Image | Documentation |
| :----------: | :----------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------: | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Humble** | [`main`](https://github.com/mgonzs13/audio_common/tree/main) | [![Humble Build](https://github.com/mgonzs13/audio_common/actions/workflows/humble-docker-build.yml/badge.svg?branch=main)](https://github.com/mgonzs13/audio_common/actions/workflows/humble-docker-build.yml?branch=main) | [![Docker Image](https://img.shields.io/badge/Docker%20Image%20-humble-blue)](https://hub.docker.com/r/mgons/audio_common/tags?name=humble) | [![Doxygen Deployment](https://github.com/mgonzs13/audio_common/actions/workflows/doxygen-deployment.yml/badge.svg)](https://mgonzs13.github.io/audio_common/) |
| **Iron** | [`main`](https://github.com/mgonzs13/audio_common/tree/main) | [![Iron Build](https://github.com/mgonzs13/audio_common/actions/workflows/iron-docker-build.yml/badge.svg?branch=main)](https://github.com/mgonzs13/audio_common/actions/workflows/iron-docker-build.yml?branch=main) | [![Docker Image](https://img.shields.io/badge/Docker%20Image%20-iron-blue)](https://hub.docker.com/r/mgons/audio_common/tags?name=iron) | [![Doxygen Deployment](https://github.com/mgonzs13/audio_common/actions/workflows/doxygen-deployment.yml/badge.svg)](https://mgonzs13.github.io/audio_common/) |
| **Jazzy** | [`main`](https://github.com/mgonzs13/audio_common/tree/main) | [![Jazzy Build](https://github.com/mgonzs13/audio_common/actions/workflows/jazzy-docker-build.yml/badge.svg?branch=main)](https://github.com/mgonzs13/audio_common/actions/workflows/jazzy-docker-build.yml?branch=main) | [![Docker Image](https://img.shields.io/badge/Docker%20Image%20-jazzy-blue)](https://hub.docker.com/r/mgons/audio_common/tags?name=jazzy) | [![Doxygen Deployment](https://github.com/mgonzs13/audio_common/actions/workflows/doxygen-deployment.yml/badge.svg)](https://mgonzs13.github.io/audio_common/) |
| **Rolling** | [`main`](https://github.com/mgonzs13/audio_common/tree/main) | [![Rolling Build](https://github.com/mgonzs13/audio_common/actions/workflows/rolling-docker-build.yml/badge.svg?branch=main)](https://github.com/mgonzs13/audio_common/actions/workflows/rolling-docker-build.yml?branch=main) | [![Docker Image](https://img.shields.io/badge/Docker%20Image%20-rolling-blue)](https://hub.docker.com/r/mgons/audio_common/tags?name=rolling) | [![Doxygen Deployment](https://github.com/mgonzs13/audio_common/actions/workflows/doxygen-deployment.yml/badge.svg)](https://mgonzs13.github.io/audio_common/) |

</div>

## Table of Contents

1. [Installation](#installation)
Expand Down

0 comments on commit db2d65d

Please sign in to comment.