refactored docker compose files and added github actions #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PiCar-X Main Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: [self-hosted, Linux, ARM&$] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build with Docker Compose | |
working-directory: ./PiCar-X | |
run: | | |
TAG=arm64v8 docker compose -f docker-compose-core.yml build --no-cache | |
TAG=arm64v8 docker compose -f docker-compose-dtp.yml build --no-cache | |
# - name: Run pytest in Docker container | |
# run: | | |
# docker-compose -f docker-compose-core.yml run --rm app pytest | |
# - name: Start roslaunch in Docker container | |
# run: | | |
# docker-compose -f docker-compose-core.yml run --rm app roslaunch | |
- name: Push to Docker Hub | |
working-directory: ./PiCar-X | |
run: | | |
TAG=arm64v8 docker compose -f docker-compose-dtp.yml push |