|
|
|
@ -20,8 +20,7 @@ env: |
|
|
|
|
RUN: docker run --shm-size 1G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v /tmp/scons_cache:/tmp/scons_cache -v /tmp/comma_download_cache:/tmp/comma_download_cache $BASE_IMAGE /bin/sh -c |
|
|
|
|
|
|
|
|
|
BUILD_CL: | |
|
|
|
|
docker pull $(grep -iohP '(?<=^from)\s+\S+' Dockerfile.openpilot_base_cl) || true |
|
|
|
|
docker pull $DOCKER_REGISTRY/$BASE_IMAGE:latest || true |
|
|
|
|
docker pull $DOCKER_REGISTRY/$CL_BASE_IMAGE:latest || true |
|
|
|
|
docker build --cache-from $DOCKER_REGISTRY/$CL_BASE_IMAGE:latest -t $DOCKER_REGISTRY/$CL_BASE_IMAGE:latest -t $CL_BASE_IMAGE:latest -f Dockerfile.openpilot_base_cl . |
|
|
|
|
RUN_CL: docker run --shm-size 1G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v /tmp/scons_cache:/tmp/scons_cache -v /tmp/comma_download_cache:/tmp/comma_download_cache $CL_BASE_IMAGE /bin/sh -c |
|
|
|
|
|
|
|
|
@ -201,12 +200,15 @@ jobs: |
|
|
|
|
submodules: true |
|
|
|
|
- name: Build Docker image |
|
|
|
|
run: eval "$BUILD" |
|
|
|
|
- name: Push to container registry |
|
|
|
|
run: | |
|
|
|
|
$DOCKER_LOGIN |
|
|
|
|
docker push $DOCKER_REGISTRY/$BASE_IMAGE:latest |
|
|
|
|
- name: Build CL Docker image |
|
|
|
|
run: eval "$BUILD_CL" |
|
|
|
|
- name: Push to container registry |
|
|
|
|
run: | |
|
|
|
|
$DOCKER_LOGIN |
|
|
|
|
docker push $DOCKER_REGISTRY/$BASE_IMAGE:latest |
|
|
|
|
docker push $DOCKER_REGISTRY/$CL_BASE_IMAGE:latest |
|
|
|
|
|
|
|
|
|
static_analysis: |
|
|
|
|