From cdd7da10c446e14941753f843055a5d7e20c78a6 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Mon, 3 Feb 2020 13:10:38 -0800 Subject: [PATCH] use base docker container when building old-commit-hash: 58f4f5aac420e4563acdd1cec98e536bc7d8af20 --- .github/workflows/test.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 88e7eed7b7..706d367417 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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: