Skip to content

Commit e121086

Browse files
author
Bastien Abadie
committed
Use Taskcluster cache when building docker image
1 parent 3b574a3 commit e121086

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.taskcluster.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,17 @@ tasks:
161161
cd /code &&
162162
git checkout ${head_rev} &&
163163
python http_service/download_models.py &&
164-
taskboot --target /code build-compose --registry=registry.hub.docker.com --write /images"
164+
taskboot --cache /cache --target /code build-compose --registry=registry.hub.docker.com --write /images"
165165
artifacts:
166166
public/bugbug:
167167
expires: {$fromNow: '2 weeks'}
168168
path: /images
169169
type: directory
170+
cache:
171+
bugbug-build: /cache
170172
scopes:
171173
- docker-worker:capability:privileged
174+
- docker-worker:cache:bugbug-build
172175
metadata:
173176
name: bugbug docker build
174177
description: bugbug docker build

0 commit comments

Comments
 (0)