mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 00:03:45 +08:00
CI: Docs rebuild base image (#29566)
* docs rebuild base image * fix order old-commit-hash: 2e4f8e6608bafc89509f6c104688b7dd8273eeac
This commit is contained in:
@@ -32,6 +32,9 @@ runs:
|
||||
restore-keys: |
|
||||
scons-${{ env.CACHE_COMMIT_DATE }}-
|
||||
scons-
|
||||
# build our docker image
|
||||
- shell: bash
|
||||
run: eval ${{ env.BUILD }}
|
||||
- id: setup-scons-cache-docker
|
||||
name: Sets up a docker image with scons cache that can by mounted as a buildkit cache mount
|
||||
shell: bash
|
||||
@@ -39,7 +42,4 @@ runs:
|
||||
run: |
|
||||
cp selfdrive/test/Dockerfile.scons_cache ~
|
||||
cd ~
|
||||
DOCKER_BUILDKIT=1 docker build -t scons-cache -f Dockerfile.scons_cache .
|
||||
# build our docker image
|
||||
- shell: bash
|
||||
run: eval ${{ env.BUILD }}
|
||||
DOCKER_BUILDKIT=1 docker build -t scons-cache -f Dockerfile.scons_cache .
|
||||
@@ -75,10 +75,6 @@ jobs:
|
||||
name: build docs
|
||||
runs-on: ubuntu-20.04
|
||||
timeout-minutes: 45
|
||||
env:
|
||||
BUILD: |
|
||||
docker pull $DOCKER_REGISTRY/openpilot-docs:latest
|
||||
DOCKER_BUILDKIT=1 docker build --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from $DOCKER_REGISTRY/openpilot-docs:latest -t $DOCKER_REGISTRY/openpilot-docs:latest -f docs/docker/Dockerfile .
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
@@ -87,6 +83,9 @@ jobs:
|
||||
with:
|
||||
setup_docker_scons_cache: true
|
||||
git_lfs: false
|
||||
- name: Build docs image
|
||||
run: |
|
||||
DOCKER_BUILDKIT=1 docker build --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from $DOCKER_REGISTRY/openpilot-docs:latest -t $DOCKER_REGISTRY/openpilot-docs:latest -f docs/docker/Dockerfile .
|
||||
- name: Push docker container
|
||||
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot'
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user