Skip to content

Commit

Permalink
Merge pull request #19 from trussworks/auto-update-ci
Browse files Browse the repository at this point in the history
Automated CircleCI config update
  • Loading branch information
eeeady authored Nov 19, 2020
2 parents 3b309c9 + 003a1db commit 72426d7
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 72426d7

Please sign in to comment.