version: 2 jobs: build: working_directory: ~/cli docker: - image: docker:17.04 steps: - checkout - setup_remote_docker - run: name: "Lint" command: | docker build -f dockerfiles/Dockerfile.lint --tag cli-linter . docker run cli-linter - run: name: "Build and Unit Test" command: docker build -f dockerfiles/Dockerfile.ci .