Skip to content

Commit

Permalink
Setting up matrix for rolling and jazzy (#1011)
Browse files Browse the repository at this point in the history
* Setting up matrix for rolling and jazzy

Signed-off-by: Aaron Chong <[email protected]>

* Use minimal-rmf:rolling to building dashboard:latest only

Signed-off-by: Aaron Chong <[email protected]>

* Change back to nightly workflow, update README

Signed-off-by: Aaron Chong <[email protected]>

---------

Signed-off-by: Aaron Chong <[email protected]>
  • Loading branch information
aaronchongth authored Sep 24, 2024
1 parent 5d670b5 commit 9f1b3c3
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 9 deletions.
38 changes: 30 additions & 8 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
build-minimal-rmf-docker-images:
name: Push minimal-rmf Docker image to GitHub Packages
runs-on: ubuntu-24.04
strategy:
matrix:
ros_distribution: [jazzy, rolling]
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
Expand All @@ -24,11 +27,13 @@ jobs:
uses: docker/build-push-action@v5
with:
push: true
tags: ghcr.io/${{ github.repository }}/minimal-rmf
build-args: |
ROS_DISTRO=${{ matrix.ros_distribution }}
tags: ghcr.io/${{ github.repository }}/minimal-rmf:${{ matrix.ros_distribution }}
context: .github/minimal-rmf
build-docker-images:
build-dashboard-image:
needs: build-minimal-rmf-docker-images
name: Push Docker images to GitHub Packages
name: Push Dashboard docker image to GitHub Packages
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
Expand All @@ -45,17 +50,34 @@ jobs:
with:
push: true
build-args: |
BASE_IMAGE=ghcr.io/${{ github.repository }}/minimal-rmf:latest
tags: ghcr.io/${{ github.repository }}/dashboard
BASE_IMAGE=ghcr.io/${{ github.repository }}/minimal-rmf:rolling
tags: ghcr.io/${{ github.repository }}/dashboard:latest
context: .github/dashboard
build-api-server-image:
needs: build-minimal-rmf-docker-images
name: Push API server docker image to GitHub Packages
runs-on: ubuntu-24.04
strategy:
matrix:
ros_distribution: [jazzy, rolling]
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to docker
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push api-server
uses: docker/build-push-action@v5
with:
push: true
build-args: |
BASE_IMAGE=ghcr.io/${{ github.repository }}/minimal-rmf:latest
ROS_DISTRO=jazzy
tags: ghcr.io/${{ github.repository }}/api-server
ROS_DISTRO=${{ matrix.ros_distribution }}
BASE_IMAGE=ghcr.io/${{ github.repository }}/minimal-rmf:${{ matrix.ros_distribution }}
tags: ghcr.io/${{ github.repository }}/api-server:${{ matrix.ros_distribution }}
context: .github/api-server
# dashboard-e2e:
# strategy:
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ docker run \
--network host -it --rm \
-e ROS_DOMAIN_ID=<ROS_DOMAIN_ID> \
-e RMW_IMPLEMENTATION=<RMW_IMPLEMENTATION> \
ghcr.io/open-rmf/rmf-web/api-server:latest
ghcr.io/open-rmf/rmf-web/api-server:jazzy

# For ROS 2 Rolling, use ghcr.io/open-rmf/rmf-web/api-server:rolling
```

> **Note**
Expand Down

0 comments on commit 9f1b3c3

Please sign in to comment.