version: 2
jobs:
  build:
    docker:
      - image: gcr.io/metrictank-gcr/logish-build-image:master-01fd5c6-WIP
        auth:
          username: _json_key
          password: $GCR_CREDS

    working_directory: /go/src/github.com/grafana/logish
    steps:
      - checkout
      - setup_remote_docker

      - run:
          name: Install Docker client
          command: |
            set -x
            VER="17.03.0-ce"
            curl -L -o /tmp/docker-$VER.tgz https://download.docker.com/linux/static/stable/x86_64/docker-$VER.tgz
            tar -xz -C /tmp -f /tmp/docker-$VER.tgz
            mv /tmp/docker/* /usr/bin

      - run:
          name: Build Images
          command: |
            # skip building the build image again
            touch build-image/.uptodate &&
            make BUILD_IN_CONTAINER=false

      - run:
          name: Push Images
          command: |
            docker login -u _json_key -p "$GCR_CREDS" https://gcr.io &&
            make push-images

version: 2
jobs:
  build:
    docker:
      - image: gcr.io/metrictank-gcr/logish-build-image:master-017c0b4
        auth:
          username: _json_key
          password: $GCR_CREDS

    working_directory: /go/src/github.com/grafana/logish
    steps:
      - checkout
      - setup_remote_docker

      - run:
          name: Install Docker client
          command: |
            set -x
            VER="17.03.0-ce"
            curl -L -o /tmp/docker-$VER.tgz https://download.docker.com/linux/static/stable/x86_64/docker-$VER.tgz
            tar -xz -C /tmp -f /tmp/docker-$VER.tgz
            mv /tmp/docker/* /usr/bin

      - run:
          name: Build Images
          command: |
            # skip building the build image again
            touch build-image/.uptodate &&
            make BUILD_IN_CONTAINER=false

      - run:
          name: Push Images
          command: |
            docker login -u _json_key -p "$GCR_CREDS" https://gcr.io &&
            make push-images

Update build image for goyacc
Update build image for goyacc
