Job has not action specified

Hi.

I have this pipeline definition:

    jobs:
      - name: build-docker-image
        public: true
        serial: true
        plan:
          - get: git-dockerfiles
          - task:
            config:
              platform: linux
              run:
                path: bash
                args:
                  - -c
                  - |
                    echo "((python.app-version))-((general.env-name)),((python.image-tags))" > /image-tags.txt
          - put: docker-image
            params:
              build_args:
                PYTHON_VERSION: ((python.app-version))
              dockerfile: python/Dockerfile
              tag_file: /image-tags.txt

When I run it with

    fly -t spy set-pipeline -c python.yml -p mgg-python -l parameters.yml

I get this error:

    error: invalid pipeline config:
    invalid jobs:
            jobs.build-docker-image.plan[1] has no action specified

My understanding is the error is related to the task, but cannot understand what I’m missing

Thanks

I see two problems with your task:

  1. It has no name. The task key is expecting a value. i.e. - task: create-tags.
  2. You are not specifying an image for the task to run in.

I added the name and now it works

Thanks