fix simulator CI (#2159)

* pull image for cache

* typo

* cleanup dockerfile

* typo

* add pr trigger

* colon?
This commit is contained in:
Adeeb Shihadeh
2020-09-12 14:31:20 -07:00
committed by GitHub
parent b857f65de8
commit 4cbf965165
2 changed files with 21 additions and 32 deletions

View File

@@ -1,14 +1,14 @@
name: simulator
on:
schedule:
- cron: '0 * * * *'
push:
pull_request:
jobs:
docker_build:
name: build container
runs-on: ubuntu-16.04
timeout-minutes: 50
if: github.event_name == 'schedule' && github.repository == 'commaai/openpilot'
if: github.repository == 'commaai/openpilot'
steps:
- uses: actions/checkout@v2
with:
@@ -16,8 +16,10 @@ jobs:
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