Skip to content

refactored docker compose files and added github actions #9

refactored docker compose files and added github actions

refactored docker compose files and added github actions #9

Workflow file for this run

name: PiCar-X Main Build
on: [push, pull_request]
jobs:
build:
runs-on: [self-hosted, Linux, ARM64]
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