Image Push Failing

The image in codeship-services.yml has to match the image_name in codeship-steps.yml, like in the following example:

- type: serial
  steps:
    - name: dockerhub_push
      service: demo
      type: push
      image_name: something/test-repo
      registry: https://index.docker.io/v1/
      dockercfg_path: dockercfg

Note that our image_name here is something/test-repo. This is the name of the image in codeship-services.yml:

demo:
  build:
    image: something/test-repo
    dockerfile_path: Dockerfile

Find out more about these two files in steps configuration and services configuration.