Remove dockerhub references from CI (#20038)

* cache from base image

* specify github repo
albatross
Willem Melching 2021-02-08 11:53:47 +01:00 committed by GitHub
parent 18382f7819
commit e9c4a75a5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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}