machine:
  services:
    - docker

dependencies:
  override:
    - |
      if [ -z $RELEASE_TOKEN ]; then
         wget -q $(curl -sS https://api.github.com/repos/giantswarm/architect/releases/latest | grep browser_download_url | head -n 1 | cut -d '"' -f 4)
      else
         wget -q $(curl -sS -H "Authorization: token $RELEASE_TOKEN" https://api.github.com/repos/giantswarm/architect/releases/latest | grep browser_download_url | head -n 1 | cut -d '"' -f 4)
      fi
    - chmod +x ./architect
    - ./architect version 

test:
  override:
    - ./architect build 


machine:
  services:
    - docker

dependencies:
  override:
    - |
      if [ -z $RELEASE_TOKEN ]; then
         wget -q $(curl -sS https://api.github.com/repos/giantswarm/architect/releases/latest | grep browser_download_url | head -n 1 | cut -d '"' -f 4)
      else
         wget -q $(curl -sS -H "Authorization: token $RELEASE_TOKEN" https://api.github.com/repos/giantswarm/architect/releases/latest | grep browser_download_url | head -n 1 | cut -d '"' -f 4)
      fi
    - chmod +x ./architect
    - ./architect version 

test:
  override:
    - ./architect --organisation=giantswarm build 


Use organisation parameter in architect
Use organisation parameter in architect
