Skip to content

Commit

Permalink
Use minimal-rmf:rolling to building dashboard:latest only
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <[email protected]>
  • Loading branch information
aaronchongth committed Sep 23, 2024
1 parent dbb3177 commit 5b835df
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,10 @@ jobs:
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
strategy:
matrix:
ros_distribution: [jazzy, rolling]
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
Expand All @@ -52,15 +49,32 @@ jobs:
- name: Build and push dashboard
uses: docker/build-push-action@v5
with:
push: false
push: true
build-args: |
BASE_IMAGE=ghcr.io/${{ github.repository }}/minimal-rmf:${{ matrix.ros_distribution }}
tags: ghcr.io/${{ github.repository }}/dashboard:${{ matrix.ros_distribution }}
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: false
push: true
build-args: |
ROS_DISTRO=${{ matrix.ros_distribution }}
BASE_IMAGE=ghcr.io/${{ github.repository }}/minimal-rmf:${{ matrix.ros_distribution }}
Expand Down

0 comments on commit 5b835df

Please sign in to comment.