.gitlab-ci.yml 532 Bytes
Newer Older
James Runnalls's avatar
James Runnalls committed
1
2
image: docker:stable

James Runnalls's avatar
James Runnalls committed
3
before_script:
James Runnalls's avatar
James Runnalls committed
4
5
  - apk-get update -qq
  - apk-get install -qq git
James Runnalls's avatar
James Runnalls committed
6
  # Setup SSH deploy keys
James Runnalls's avatar
James Runnalls committed
7
  - 'which ssh-agent || ( apk-get install -qq openssh-client )'
James Runnalls's avatar
James Runnalls committed
8
9
10
11
  - eval $(ssh-agent -s)
  - ssh-add <(echo "$SSH_PRIVATE_KEY")
  - mkdir -p ~/.ssh
  - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
James Runnalls's avatar
James Runnalls committed
12

James Runnalls's avatar
James Runnalls committed
13
14
deploy_staging:
  type: deploy
James Runnalls's avatar
James Runnalls committed
15
  environment:
James Runnalls's avatar
James Runnalls committed
16
17
    name: staging
    url: https://renkulab.io/gitlab/data-lakes/
James Runnalls's avatar
James Runnalls committed
18
  script:
James Runnalls's avatar
James Runnalls committed
19
20
21
    - ssh centos@148.187.97.230
  only:
    - master