release:version:
  image: gitlab.nexdev.uk:5555/pub/nexus-release-image/master
  stage: deploy
  before_script:
    - eval $(ssh-agent -s)
    - echo "$CI_DEPLOY_KEY" | tr -d '\r' | ssh-add -
    - ssh-keyscan gitlab.nexdev.uk >> ~/.ssh/known_hosts
  script:
    - /build/release.sh
  tags:
    - nexus_runner
  only:
    - master