[ci] Use sccache to build images (#5419)

Signed-off-by: kevin <kevin@anyscale.com>
This commit is contained in:
Kevin H. Luu
2024-06-12 17:58:12 -07:00
committed by GitHub
parent ea3890a5f0
commit 916d219d62
3 changed files with 22 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ steps:
queue: cpu_queue
commands:
- "aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/q9t5s3a7"
- "docker build --build-arg max_jobs=16 --tag {{ docker_image }} --target test --progress plain ."
- "docker build --build-arg max_jobs=16 --build-arg USE_SCCACHE=1 --tag {{ docker_image }} --target test --progress plain ."
- "docker push {{ docker_image }}"
env:
DOCKER_BUILDKIT: "1"