Files
sunnypilot/.github/workflows/sim_tests.yaml
Adeeb Shihadeh 4cbf965165 fix simulator CI (#2159)
* pull image for cache

* typo

* cleanup dockerfile

* typo

* add pr trigger

* colon?
2020-09-12 14:31:20 -07:00

27 lines
722 B
YAML

name: simulator
on:
push:
pull_request:
jobs:
docker_build:
name: build container
runs-on: ubuntu-16.04
timeout-minutes: 50
if: github.repository == 'commaai/openpilot'
steps:
- uses: actions/checkout@v2
with:
submodules: true
lfs: true
- name: Docker build
run: |
docker pull commaai/openpilot-sim:latest || true
tools/sim/build_container.sh
- name: Push to dockerhub
if: github.ref == 'refs/heads/master'
run: |
docker login -u wmelching -p ${{ secrets.COMMA_DOCKERHUB_TOKEN }}
docker tag commaai/openpilot-sim docker.io/commaai/openpilot-sim:latest
docker push docker.io/commaai/openpilot-sim:latest