Skip to content

Commit

Permalink
CI: Use buildkit, cache from intermediate stages
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Apr 10, 2023
1 parent c8385be commit 4f8af2f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ orbs:
jobs:
build_clean:
<<: *machine_defaults
environment:
DOCKER_BUILDKIT: 1
steps:
- checkout:
path: *src
Expand All @@ -144,6 +146,8 @@ jobs:
build:
<<: *machine_defaults
environment:
DOCKER_BUILDKIT: 1
steps:
- checkout:
path: *src
Expand Down Expand Up @@ -227,6 +231,12 @@ jobs:
e=1 && for i in {1..5}; do
docker build --rm \
--cache-from=nipreps/fmriprep \
--cache-from=localhost:5000/downloader \
--cache-from=localhost:5000/freesurfer \
--cache-from=localhost:5000/afni \
--cache-from=localhost:5000/ants \
--cache-from=localhost:5000/workbench \
--cache-from=localhost:5000/micromamba \
-t nipreps/fmriprep:latest \
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
--build-arg VCS_REF=`git rev-parse --short HEAD` \
Expand Down

0 comments on commit 4f8af2f

Please sign in to comment.