- name: Build Base Image
  service: base
  command: true
- name: Test dockercfg Generator
  service: dockercfg_test
  type: push
  image_name: registry.ng.bluemix.net/codeship/codeship-testing
  registry: registry.ng.bluemix.net
  dockercfg_service: dockercfg_test_generator
- name: Deploy (to Docker Hub)
  type: serial
  steps:
    - name: Push dockercfg Generator
      service: dockercfg_generator
      tag: master
      type: push
      image_name: codeship/ibm-bluemix-dockercfg-generator
      encrypted_dockercfg_path: dockercfg.encrypted

- name: Build Base Image
  service: base
  command: true
- name: Build the dockercfg Generator
  service: dockercfg_generator
  command: true
- name: Test dockercfg Generator
  service: dockercfg_test
  type: push
  image_name: registry.ng.bluemix.net/codeship/codeship-testing
  registry: registry.ng.bluemix.net
  dockercfg_service: dockercfg_test_generator
- name: Deploy (to Docker Hub)
  type: serial
  steps:
    - name: Push dockercfg Generator
      service: dockercfg_generator
      tag: master
      type: push
      image_name: codeship/ibm-bluemix-dockercfg-generator
      encrypted_dockercfg_path: dockercfg.encrypted

Build the dockercfg generator as part of the build
Build the dockercfg generator as part of the build
