gitlab-dev:
  tags:
    - meao
    - gcp
  only:
    - gitlab
  variables:
    NAMESPACE: nucleus-dev
  script:
    - docker/bin/build_images.sh
    - docker/bin/push2dockerhub.sh
    - bin/update-config.sh

master:
  tags:
    - meao
    - gcp
  only:
    - master
  variables:
    NAMESPACE: nucleus-dev
  script:
    - docker/bin/build_images.sh
    - docker/bin/push2dockerhub.sh
    - bin/update-config.sh

stage:
  tags:
    - meao
    - gcp
  only:
    - stage
  variables:
    NAMESPACE: nucleus-stage
  script:
    - docker/bin/build_images.sh
    - docker/bin/push2dockerhub.sh
    - bin/update-config.sh

prod:
  tags:
    - meao
    - gcp
  only:
    - prod
  variables:
    NAMESPACE: nucleus-prod
  script:
    - docker/bin/build_images.sh
    - docker/bin/push2dockerhub.sh
    - bin/update-config.sh

gitlab-dev:
  tags:
    - meao
    - gcp
  only:
    - gitlab
  variables:
    NAMESPACE: nucleus-dev
  script:
    - docker/bin/build_images.sh
    - docker/bin/push2dockerhub.sh
    - CLUSTER_NAME=iowa-b bin/update-config.sh
    - CLUSTER_NAME=frankfurt bin/update-config.sh

master:
  tags:
    - meao
    - gcp
  only:
    - master
  variables:
    NAMESPACE: nucleus-dev
  script:
    - docker/bin/build_images.sh
    - docker/bin/push2dockerhub.sh
    - bin/update-config.sh

stage:
  tags:
    - meao
    - gcp
  only:
    - stage
  variables:
    NAMESPACE: nucleus-stage
  script:
    - docker/bin/build_images.sh
    - docker/bin/push2dockerhub.sh
    - bin/update-config.sh

prod:
  tags:
    - meao
    - gcp
  only:
    - prod
  variables:
    NAMESPACE: nucleus-prod
  script:
    - docker/bin/build_images.sh
    - docker/bin/push2dockerhub.sh
    - bin/update-config.sh

Update the config repo for both iowa-b & frankfurt clusters
Update the config repo for both iowa-b & frankfurt clusters
