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