Skip to content

Commit

Permalink
Setting up matrix for rolling and jazzy
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 5d670b5 commit dbb3177
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
name: Nightly
on:
schedule:
# 2am SGT
- cron: '0 18 * * *'
# on:
# schedule:
# # 2am SGT
# - cron: '0 18 * * *'
on: push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
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,12 +28,17 @@ 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:
needs: build-minimal-rmf-docker-images
name: Push Docker images 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 @@ -43,19 +52,19 @@ jobs:
- name: Build and push dashboard
uses: docker/build-push-action@v5
with:
push: true
push: false
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:${{ matrix.ros_distribution }}
tags: ghcr.io/${{ github.repository }}/dashboard:${{ matrix.ros_distribution }}
context: .github/dashboard
- name: Build and push api-server
uses: docker/build-push-action@v5
with:
push: true
push: false
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

0 comments on commit dbb3177

Please sign in to comment.