config.yml 588 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
version: 2
jobs:
  build:
    machine: true
    steps:
      - checkout
      - restore_cache:
          key: docker-{{ checksum "Dockerfile" }}
      - run:
10
          command: if [[ -e ~/docker/image.tar ]]; then docker load --input ~/docker/image.tar; else docker build --build-arg CI=true -t taste . && { mkdir -p ~/docker; docker save taste > ~/docker/image.tar ; } ; fi
11 12 13 14 15 16
      - save_cache:
          key: docker-{{ checksum "Dockerfile" }}
          paths:
            - ~/docker
      - run:
          command: ./circleci-test.sh
17 18

      - store_artifacts:
19
          path: artifacts