Skip to content

Commit

Permalink
Merge pull request #54 from nipreps/maint/update-circle-config
Browse files Browse the repository at this point in the history
MAINT: Update CircleCI config
  • Loading branch information
oesteban authored Feb 23, 2023
2 parents 8d46605 + c100da7 commit 4d6aaff
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
version: 2
version: 2.1
orbs:
docker: circleci/docker@2.1.4

jobs:

build_and_test:
working_directory: /home/circleci/mriqcwebapi

machine:
image: circleci/classic:latest
image: ubuntu-2004:202104-01
docker_layer_caching: true

environment:
- SECRET_KEY: CI
Expand All @@ -15,6 +19,14 @@ jobs:
- API_URL: "http://localhost/docs/api"

steps:
- docker/install-docker-credential-helper
- run:
name: Docker authentication
command: |
if [[ -n $DOCKER_PAT ]]; then
echo "$DOCKER_PAT" | docker login -u $DOCKER_USER --password-stdin
fi
- checkout
- run:
name: Install dependencies
Expand Down Expand Up @@ -44,6 +56,8 @@ workflows:
webapi:
jobs:
- build_and_test:
context:
- nipreps-common
filters:
tags:
only: /.*/

0 comments on commit 4d6aaff

Please sign in to comment.