Skip to content

Commit

Permalink
CI: Bump build cache
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jan 20, 2023
1 parent f4abf31 commit 0d696f9
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ jobs:
- run: *check_skip_job
- restore_cache:
keys:
- build-v5-{{ .Branch }}-{{ .Revision }}
- build-v5--{{ .Revision }}
- build-v5-{{ .Branch }}-
- build-v5-master-
- build-v5-
- build-v0-{{ .Branch }}-{{ .Revision }}
- build-v0--{{ .Revision }}
- build-v0-{{ .Branch }}-
- build-v0-master-
- build-v0-
paths:
- /tmp/docker
- /tmp/images
Expand All @@ -147,19 +147,19 @@ jobs:
docker save registry:2 | gzip > /tmp/images/registry.tar.gz
fi
- run:
name: Pull Ubuntu/focal image
name: Pull Ubuntu/jammy image
command: |
set +e
docker pull localhost:5000/ubuntu
success=$?
set -e
if [[ "$success" = "0" ]]; then
echo "Pulling from local registry"
docker tag localhost:5000/ubuntu ubuntu:focal
docker tag localhost:5000/ubuntu ubuntu:jammy
else
echo "Pulling from Docker Hub"
docker pull ubuntu:focal
docker tag ubuntu:focal localhost:5000/ubuntu
docker pull ubuntu:jammy
docker tag ubuntu:jammy localhost:5000/ubuntu
docker push localhost:5000/ubuntu
fi
- run:
Expand Down Expand Up @@ -235,7 +235,7 @@ jobs:
paths:
- src/fmriprep
- save_cache:
key: build-v5-{{ .Branch }}-{{ .Revision }}
key: build-v0-{{ .Branch }}-{{ .Revision }}
paths:
- /tmp/docker
- /tmp/images
Expand Down Expand Up @@ -368,7 +368,7 @@ jobs:
at: /tmp
- restore_cache:
keys:
- build-v5-{{ .Branch }}-{{ .Revision }}
- build-v0-{{ .Branch }}-{{ .Revision }}
paths:
- /tmp/docker
- /tmp/images
Expand Down Expand Up @@ -441,7 +441,7 @@ jobs:
at: /tmp
- restore_cache:
keys:
- build-v5-{{ .Branch }}-{{ .Revision }}
- build-v0-{{ .Branch }}-{{ .Revision }}
paths:
- /tmp/docker
- /tmp/images
Expand Down Expand Up @@ -651,7 +651,7 @@ jobs:
at: /tmp
- restore_cache:
keys:
- build-v5-{{ .Branch }}-{{ .Revision }}
- build-v0-{{ .Branch }}-{{ .Revision }}
paths:
- /tmp/docker
- /tmp/images
Expand Down Expand Up @@ -777,7 +777,7 @@ jobs:
at: /tmp
- restore_cache:
keys:
- build-v5-{{ .Branch }}-{{ .Revision }}
- build-v0-{{ .Branch }}-{{ .Revision }}
paths:
- /tmp/docker
- /tmp/images
Expand Down Expand Up @@ -893,7 +893,7 @@ jobs:
fi
- restore_cache:
keys:
- build-v5-{{ .Branch }}-{{ .Revision }}
- build-v0-{{ .Branch }}-{{ .Revision }}
paths:
- /tmp/docker
- /tmp/images
Expand All @@ -916,7 +916,7 @@ jobs:
- run: *check_skip_job
- restore_cache:
keys:
- build-v5-{{ .Branch }}-{{ .Revision }}
- build-v0-{{ .Branch }}-{{ .Revision }}
paths:
- /tmp/docker
- /tmp/images
Expand Down

0 comments on commit 0d696f9

Please sign in to comment.