Skip to content

refactored docker compose files and added github actions #10

refactored docker compose files and added github actions

refactored docker compose files and added github actions #10

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: |

Check failure on line 14 in .github/workflows/build-arm64v8.yml

View workflow run for this annotation

GitHub Actions / PiCar-X Main Build

Invalid workflow file

The workflow is not valid. .github/workflows/build-arm64v8.yml (Line: 14, Col: 12): Unexpected symbol: 'ref_name:-latest'. Located at position 8 within expression: github.ref_name:-latest .github/workflows/build-arm64v8.yml (Line: 28, Col: 12): Unexpected symbol: 'ref_name:-latest'. Located at position 8 within expression: github.ref_name:-latest
TAG=${{github.ref_name:-latest}}-arm64v8 ARCH=arm64v8 docker compose -f docker-compose-core.yml build --no-cache
TAG=${{github.ref_name:-latest}}-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=${{ github.ref_name:-latest }}-arm64v8 docker compose -f docker-compose-dtp.yml push