.gitlab-ci.yml 574 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
image: node

before_script:


stages:
  - build
  - deploy

build:
  stage: build

  script:
    - npm install
    - npm run build

deploy:
  stage: deploy
19
20
  only:
    - master
21
22
23
24
25
26
27
28
  script:
    - 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'

    - npm install
    - npm run build
David Hoksza's avatar
David Hoksza committed
29
30
31
    - echo "mkdir plugins-www/gsea"|sftp -P 8022 gitlab-ci@10.240.6.160
    - echo "put dist/plugin.js plugins-www/gsea/"|sftp -P 8022 gitlab-ci@10.240.6.160

32

33