Skip to content

Commit

Permalink
ci(vlp_ws): Add amd64 and arm64 CI
Browse files Browse the repository at this point in the history
  • Loading branch information
j3soon committed Aug 8, 2024
1 parent dc58c53 commit d9c5155
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build-vlp-ws.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build Docker Image for vlp-ws

on:
push:
branches:
- "master"
paths:
- .github/workflows/build-vlp-ws.yaml
- vlp_ws/docker/Dockerfile
- vlp_ws/docker/.dockerignore
- vlp_ws/docker/.bashrc

jobs:
docker:
if: github.repository == 'j3soon/ros2-essentials'
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@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-vlp-ws/tags
images: ${{ secrets.DOCKERHUB_USERNAME }}/ros2-vlp-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: vlp_ws/docker
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Pulling the pre-built Docker images can bypass the time-consuming building proce
| [j3soon/ros2-cartographer-ws](https://hub.docker.com/r/j3soon/ros2-cartographer-ws/tags) | [`./cartographer_ws`](./cartographer_ws) | ✔️ ||
| [j3soon/ros2-husky-ws](https://hub.docker.com/r/j3soon/ros2-husky-ws/tags) | [`./husky_ws`](./husky_ws) | ✔️ | ✔️ |
| [j3soon/ros2-kobuki-ws](https://hub.docker.com/r/j3soon/ros2-kobuki-ws/tags) | [`./kobuki_ws`](./kobuki_ws) | ✔️ | ✔️ |
| [j3soon/ros2-vlp-ws](https://hub.docker.com/r/j3soon/ros2-vlp-ws/tags) | [`./vlp_ws`](./vlp_ws) | ✔️ | ✔️ |

## Contributors

Expand Down
2 changes: 2 additions & 0 deletions vlp_ws/docker/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.bashrc

0 comments on commit d9c5155

Please sign in to comment.