Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Weekly docker build from scratch #2938

Merged
merged 1 commit into from
Jan 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,31 @@ orbs:
docker: circleci/docker@2.1.4

jobs:
build_clean:
<<: *machine_defaults
steps:
- checkout:
path: *src
- docker/install-docker-credential-helper
- run: *docker_auth
- run:
name: Build Docker image
no_output_timeout: 60m
command: |
export PY3=$(pyenv versions | grep '3\.' |
sed -e 's/.* 3\./3./' -e 's/ .*//')
pyenv local $PY3
pip install hatch
# Get version, update files
THISVERSION=$( hatch version )
# Build docker image
docker build --rm \
--cache-from=nipreps/fmriprep \
-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` \
--build-arg VERSION="$THISVERSION" .

build:
<<: *machine_defaults
steps:
Expand Down Expand Up @@ -992,6 +1017,20 @@ jobs:

workflows:
version: 2
build_from_scratch:
triggers:
- schedule:
cron: "0 13 * * 1"
filters:
branches:
only:
- master
- maint/20.2.x
jobs:
- build_clean:
context:
- nipreps-common

build_test_deploy:
jobs:
- build:
Expand Down