From 003a1db0c1438f33a62ef9c683ff8c83a3867039 Mon Sep 17 00:00:00 2001 From: Elizabeth Eady Date: Thu, 5 Nov 2020 14:06:50 -0800 Subject: [PATCH] Updating CircleCi config --- .circleci/config.yml | 42 ++++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4624d0b..0dcb80f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,27 +1,29 @@ -version: 2.1 - -references: - circleci: &circleci trussworks/circleci:29ab89fdada1f85c5d8fb685a2c71660f0c5f60c - jobs: validate: docker: - - image: *circleci + - auth: + password: $DOCKER_PASSWORD + username: $DOCKER_USERNAME + image: trussworks/circleci:29ab89fdada1f85c5d8fb685a2c71660f0c5f60c steps: - - checkout - - restore_cache: - keys: - - pre-commit-dot-cache-{{ checksum ".pre-commit-config.yaml" }} - - run: - name: Run pre-commit tests - command: pre-commit run --all-files - - save_cache: - key: pre-commit-dot-cache-{{ checksum ".pre-commit-config.yaml" }} - paths: - - ~/.cache/pre-commit - + - checkout + - restore_cache: + keys: + - pre-commit-dot-cache-{{ checksum ".pre-commit-config.yaml" }} + - run: + command: pre-commit run --all-files + name: Run pre-commit tests + - save_cache: + key: pre-commit-dot-cache-{{ checksum ".pre-commit-config.yaml" }} + paths: + - ~/.cache/pre-commit +references: + circleci: trussworks/circleci:29ab89fdada1f85c5d8fb685a2c71660f0c5f60c +version: 2.1 workflows: - version: 2.1 validate: jobs: - - validate + - validate: + context: + - org-global + version: 2.1