Cannot unmarshal object into Go struct field


#1

I just tried to upgrade from circleci 1 version.

This is my .circleci/config.yml file:

version: 2
jobs:
  build:
    docker:
      image: circleci/php:7.0-cli-node
    steps:
      - checkout
      - run: composer install -n --no-progress --no-suggest
      - run: bin/phpunit

This is the error I get:

Build-agent version 0.0.3558-7abfc35 (2017-07-11T15:25:49+0000)
Configuration errors: 1 error occurred:

* json: cannot unmarshal object into Go struct field JobDescription.docker of type []config.ContainerConfig

#2

You’re missing the dash before the image line for Docker.

version: 2
jobs:
  build:
    docker:
      - image: circleci/php:7.0-cli-node
    steps:
      - checkout
      - run: composer install -n --no-progress --no-suggest
      - run: bin/phpunit

#3

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.