Remove dockerhub references from CI (#20038)

* cache from base image

* specify github repo
old-commit-hash: e9c4a75a5c430ac6968808f103145cd0bd98a17a
This commit is contained in:
Willem Melching
2021-02-08 11:53:47 +01:00
committed by GitHub
parent d9ac51af5c
commit c8bcf66cd5
4 changed files with 4 additions and 4 deletions

View File

@@ -107,7 +107,7 @@ jobs:
run: |
eval "$BUILD"
docker pull $DOCKER_REGISTRY/$IMAGE_NAME:latest || true
docker build --cache-from $DOCKER_REGISTRY/$IMAGE_NAME:latest -t $DOCKER_REGISTRY/$IMAGE_NAME:latest -f tools/webcam/Dockerfile .
docker build --cache-from $DOCKER_REGISTRY/$BASE_IMAGE:latest --cache-from $DOCKER_REGISTRY/$IMAGE_NAME:latest -t $DOCKER_REGISTRY/$IMAGE_NAME:latest -f tools/webcam/Dockerfile .
- name: Build openpilot
run: docker run --shm-size 1G --rm -v $PWD:/tmp/openpilot -e PYTHONPATH=/tmp/openpilot $DOCKER_REGISTRY/$IMAGE_NAME /bin/sh -c "cd /tmp/openpilot && USE_WEBCAM=1 scons -j$(nproc)"
- name: Push to container registry

View File

@@ -1,4 +1,4 @@
FROM commaai/openpilot-base:latest
FROM ghcr.io/commaai/openpilot-base:latest
ENV PYTHONUNBUFFERED 1

View File

@@ -1,4 +1,4 @@
FROM commaai/openpilot-base:latest
FROM ghcr.io/commaai/openpilot-base:latest
RUN apt-get update && apt-get install -y \
apt-utils \

View File

@@ -1,4 +1,4 @@
FROM commaai/openpilot-base:latest
FROM ghcr.io/commaai/openpilot-base:latest
ENV PYTHONUNBUFFERED 1
ENV PYTHONPATH /tmp/openpilot:${PYTHONPATH}