diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 00000000..3bd2f240 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -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" diff --git a/README.md b/README.md index 9f178b65..47e3bd4b 100644 --- a/README.md +++ b/README.md @@ -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