Skip to content

Commit

Permalink
ci: scope checkout cache to only 'reps'
Browse files Browse the repository at this point in the history
  • Loading branch information
ahal committed Oct 25, 2023
1 parent 3daf931 commit 2ac5904
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ tasks:
ACTION_CALLBACK: '${action.cb_name}'

cache:
"${trustDomain}-level-${level}-checkouts-sparse-v2": /builds/worker/checkouts
"${trustDomain}-project-${project}-level-${level}-checkouts-sparse-v2": /builds/worker/checkouts/${project}

features:
taskclusterProxy: true
Expand All @@ -217,7 +217,7 @@ tasks:

command:
- run-task
- '--${normProject}-checkout=/builds/worker/checkouts/src'
- '--${normProject}-checkout=/builds/worker/checkouts/${project}/src'
- '--'
- bash
- -cx
Expand All @@ -226,12 +226,12 @@ tasks:
in:
$if: 'tasks_for == "action"'
then: >
cd /builds/worker/checkouts/src &&
cd /builds/worker/checkouts/${project}/src &&
ln -s /builds/worker/artifacts artifacts &&
pip3 install -r requirements/base.txt &&
~/.local/bin/taskgraph action-callback
else: >
cd /builds/worker/checkouts/src &&
cd /builds/worker/checkouts/${project}/src &&
ln -s /builds/worker/artifacts artifacts &&
~/.local/bin/taskgraph decision
--pushlog-id='0'
Expand All @@ -256,7 +256,7 @@ tasks:
expires: {$fromNow: '1 year'}
'public/docker-contexts':
type: 'directory'
path: '/builds/worker/checkouts/src/docker-contexts'
path: '/builds/worker/checkouts/${project}/src/docker-contexts'
# This needs to be at least the deadline of the
# decision task + the docker-image task deadlines.
# It is set to a week to allow for some time for
Expand Down

0 comments on commit 2ac5904

Please sign in to comment.