use base docker container when building

albatross
Willem Melching 2020-02-03 13:10:38 -08:00
parent 0e1fc45bc3
commit 58f4f5aac4
1 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,10 @@ jobs:
run: |
git submodule update --init
- run: |
docker build -t tmppilot -f Dockerfile.openpilot .
docker pull $(grep -ioP '(?<=^from)\s+\S+' Dockerfile.openpilot) || true
docker pull docker.pkg.github.com/commaai/openpilot/openpilot:latest || true
docker build --cache-from docker.pkg.github.com/commaai/openpilot/openpilot:latest -t tmppilot -f Dockerfile.openpilot .
docker save tmppilot:latest | gzip > tmppilot.tar.gz
- uses: actions/upload-artifact@v1
with: