.gitlab-ci.yml 577 Bytes
Newer Older
remy's avatar
remy committed
1
2
3
4
stages:
  - build
  - deploy

5
image: tmaier/docker-compose
remy's avatar
remy committed
6
services:
7
    - docker:dind
remy's avatar
remy committed
8

remy's avatar
remy committed
9
variables:
jlopez's avatar
jlopez committed
10
  #  DOCKER_HOST: tcp://docker:2375
jlopez's avatar
jlopez committed
11
  DOCKER_DRIVER: overlay2
remy's avatar
remy committed
12

remy's avatar
remy committed
13
buildJob:
jlopez's avatar
jlopez committed
14
  stage: build
remy's avatar
remy committed
15
  tags:
16
    - bioco
remy's avatar
remy committed
17
  script:
remy's avatar
remy committed
18
    - apk update
remy's avatar
remy committed
19
    - apk add --no-cache wget gzip git net-tools
remy's avatar
remy committed
20
21
    - git clone https://gitlab.mbb.univ-montp2.fr/jlopez/wicopa.git
    - cd wicopa
remy's avatar
remy committed
22
    - wget -q http://web.mbb.univ-montp2.fr/download/wicopa.sql.gz
remy's avatar
remy committed
23
    - gunzip -d wicopa.sql.gz
remy's avatar
remy committed
24
25
26
27
28
    - docker-compose build

RunDeployment:
  stage: deploy
  tags:
29
    - bioco
remy's avatar
remy committed
30
31
  script:
    - docker-compose up