-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
31 lines (29 loc) · 973 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
stages:
- deploy
deploy_dev:
stage: deploy
before_script:
- apt-get update && apt-get install -y openssh-client
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
script:
- ssh -o StrictHostKeyChecking=no "$USER"@"$SERVER"
"source $CONDA_PATH; conda activate gwas-utils-dev; pip install --ignore-installed git+https://github.com/EBISPOT/gwas-solr-slim.git@$CI_COMMIT_BRANCH"
only:
- master
- dev
deploy_prod:
stage: deploy
before_script:
- apt-get update && apt-get install -y openssh-client
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
script:
- ssh -o StrictHostKeyChecking=no "$USER"@"$SERVER"
"source $CONDA_PATH; conda activate gwas-utils; pip install --ignore-installed git+https://github.com/EBISPOT/gwas-solr-slim.git@$CI_COMMIT_TAG"
only:
- tags