Skip to content

Commit

Permalink
Build ros1-bridge-build-ws docker image with gh-action
Browse files Browse the repository at this point in the history
  • Loading branch information
j3soon committed Nov 18, 2023
1 parent 1c69480 commit f4f20f1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build-ros1-bridge-ws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ jobs:
tags: |
type=raw,value={{date 'YYYYMMDD'}}
type=raw,value=latest
-
name: Docker meta (for build)
id: meta_build
# Ref: https://github.com/docker/metadata-action
uses: docker/metadata-action@v5
with:
# Link: https://hub.docker.com/repository/docker/j3soon/ros2-ros1-bridge-build-ws/tags
images: ${{ secrets.DOCKERHUB_USERNAME }}/ros2-ros1-bridge-build-ws
tags: |
type=raw,value={{date 'YYYYMMDD'}}
type=raw,value=latest
-
name: Login to Docker Hub
uses: docker/login-action@v2
Expand All @@ -38,5 +49,14 @@ jobs:
uses: docker/build-push-action@v4
with:
context: ros1_bridge_ws/docker
target: release
push: true
tags: ${{ steps.meta.outputs.tags }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: ros1_bridge_ws/docker
target: build
push: true
tags: ${{ steps.meta_build.outputs.tags }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Pulling the pre-built Docker images can bypass the time-consuming building proce
| [j3soon/ros2-template-ws](https://hub.docker.com/repository/docker/j3soon/ros2-template-ws/tags) | [`./template_ws`](./template_ws) | No |
| [j3soon/ros2-orbslam3-ws](https://hub.docker.com/repository/docker/j3soon/ros2-orbslam3-ws/tags) | [`./orbslam3_ws`](./orbslam3_ws) | No |
| [j3soon/ros2-ros1-bridge-ws](https://hub.docker.com/repository/docker/j3soon/ros2-ros1-bridge-ws/tags) | [`./ros1_bridge_ws`](./ros1_bridge_ws) | No |
| [j3soon/ros2-ros1-bridge-build-ws](https://hub.docker.com/repository/docker/j3soon/ros2-ros1-bridge-build-ws/tags) | [`./ros1_bridge_ws`](./ros1_bridge_ws) | No |

## Supplementary

Expand Down

0 comments on commit f4f20f1

Please sign in to comment.