Skip to content

Commit

Permalink
Merge pull request space-ros#37 from space-ros/add-build-workflow
Browse files Browse the repository at this point in the history
Add build workflow (fix issue space-ros#35)
  • Loading branch information
mkhansenbot authored Sep 5, 2024
2 parents 333a1f6 + a1e83cf commit c316131
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run the build.sh scripts
run: |
# find the build.sh scripts and execute them
echo "Running all build.sh scripts in repo"
for f in $(find . -iname 'build.sh')
do
$f || exit 1
done
echo "Done running build.sh scripts"
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,12 @@

This repository provides examples for running robots using Space ROS

Please refer to the [dockerfile repo](https://github.com/space-ros/docker/tree/main/space_robots) for running instruction
Submissions to this repo should include:
1) A Dockerfile or docker-compose.yaml file for building on top of the `osrf/space-ros:latest`
2) A `build.sh` script for building the docker image
- This is required for CI to build the image
- See example here: https://github.com/space-ros/docker/blob/main/space_robots/build.sh
3) A `run.sh` script for running the demo
- - See example here: https://github.com/space-ros/docker/blob/main/space_robots/run.sh

Please refer to the [dockerfile repo](https://github.com/space-ros/docker/tree/main/space_robots) for instructions on running the existing demos

0 comments on commit c316131

Please sign in to comment.