diff --git a/.github/workflows/build-husky-ws.yaml b/.github/workflows/build-husky-ws.yaml new file mode 100644 index 00000000..d8205e83 --- /dev/null +++ b/.github/workflows/build-husky-ws.yaml @@ -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 }} diff --git a/README.md b/README.md index e00d4012..b793cc8d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/husky_ws/docker/.dockerignore b/husky_ws/docker/.dockerignore new file mode 100644 index 00000000..d90a1c95 --- /dev/null +++ b/husky_ws/docker/.dockerignore @@ -0,0 +1,5 @@ +* +!.bashrc +!script +!clearpath_computer_installer +!udev_rules