Skip to content

Commit

Permalink
ci(husky-ws): Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
j3soon committed Jul 4, 2024
1 parent e8abad1 commit 2abe2a3
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build-husky-ws.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build Docker Image for husky-ws

on:
push:
branches:
- "master"
paths:
- .github/workflows/build-husky-ws.yaml
- husky_ws/docker/Dockerfile
- husky_ws/docker/.dockerignore
- husky_ws/docker/.bashrc
- husky_ws/script
- husky_ws/clearpath_computer_installer
- husky_ws/udev_rules

jobs:
docker:
if: github.repository == 'j3soon/ros2-essentials'
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Docker meta
id: meta
# Ref: https://github.com/docker/metadata-action
uses: docker/metadata-action@v5
with:
# Link: https://hub.docker.com/repository/docker/j3soon/ros2-husky-ws/tags
images: ${{ secrets.DOCKERHUB_USERNAME }}/ros2-husky-ws
tags: |
type=raw,value={{date 'YYYYMMDD'}}
type=raw,value=latest
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: husky_ws/docker
push: true
tags: ${{ steps.meta.outputs.tags }}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Pulling the pre-built Docker images can bypass the time-consuming building proce
| [j3soon/ros2-rtabmap-ws](https://hub.docker.com/r/j3soon/ros2-rtabmap-ws/tags) | [`./rtabmap_ws`](./rtabmap_ws) | No |
| [j3soon/ros2-ros1-bridge-ws](https://hub.docker.com/r/j3soon/ros2-ros1-bridge-ws/tags) | [`./ros1_bridge_ws`](./ros1_bridge_ws) | No |
| [j3soon/ros2-ros1-bridge-build-ws](https://hub.docker.com/r/j3soon/ros2-ros1-bridge-build-ws/tags) | [`./ros1_bridge_ws`](./ros1_bridge_ws) | No |
| [j3soon/ros2-cartographer-ws](https://hub.docker.com/r/j3soon/ros2-cartographer-ws/tags) | [`./cartographer_ws`](./cartographer_ws) | No |
| [j3soon/ros2-husky-ws](https://hub.docker.com/r/j3soon/ros2-husky-ws/tags) | [`./husky_ws`](./husky_ws) | No |

## Supplementary

Expand Down
5 changes: 5 additions & 0 deletions husky_ws/docker/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*
!.bashrc
!script
!clearpath_computer_installer
!udev_rules

0 comments on commit 2abe2a3

Please sign in to comment.