.gitlab-ci.yml 2.1 KB
Newer Older
Amandine  PERRIN's avatar
Amandine PERRIN committed
1
2
3
4
5
6
image: docker:latest

services:
  - docker:dind

variables:
7
    CI_REGISTRY_IMAGE: "registry-gitlab.pasteur.fr/aperrin/pipeline_annotation"
Thomas  MENARD's avatar
Thomas MENARD committed
8
 #   DOCKER_HOST: tcp://localhost:2375
Amandine  PERRIN's avatar
Amandine PERRIN committed
9
10
11
12

before_script:
  - docker login -u gitlab-ci-token -p "$CI_BUILD_TOKEN" registry-gitlab.pasteur.fr

Amandine  PERRIN's avatar
Amandine PERRIN committed
13
14
15
build-test-image:
  only:
    - docker
16
  stage: build
Amandine  PERRIN's avatar
Amandine PERRIN committed
17
18
19
20
21
  script:
    - apk update ; apk add git
    - git checkout master -- requirements.txt
    - docker build --pull -t "$CI_REGISTRY_IMAGE/testing-ubuntu" for_tests
    - docker push "$CI_REGISTRY_IMAGE/testing-ubuntu"
Thomas  MENARD's avatar
Thomas MENARD committed
22

23

Amandine  PERRIN's avatar
Amandine PERRIN committed
24
25
26
build-install-barrnap:
  only:
    - docker
27
  stage: build
Amandine  PERRIN's avatar
Amandine PERRIN committed
28
29
30
31
32
  script:
    - apk update ; apk add git
    - git checkout master -- requirements.txt
    - docker build --pull -t "$CI_REGISTRY_IMAGE/install-ubuntu-barrnaponly" for_build/barrnap_only
    - docker push "$CI_REGISTRY_IMAGE/install-ubuntu-barrnaponly"
33
34
  tags:
    - k8s
35

36
build-install-annote-and-quicktree:
37
38
  only:
    - docker
39
  stage: build
40
41
42
  script:
    - apk update ; apk add git
    - git checkout master -- requirements.txt
43
44
    - docker build --pull -t "$CI_REGISTRY_IMAGE/install-ubuntu-annote-quicktree" for_build/annote_and_1tree
    - docker push "$CI_REGISTRY_IMAGE/install-ubuntu-annote-quicktree"
45
46
  tags:
    - k8s
47

Amandine  PERRIN's avatar
Amandine PERRIN committed
48
49
50
build-ubuntu:
  only:
    - docker
51
  stage: build
Amandine  PERRIN's avatar
Amandine PERRIN committed
52
53
54
55
56
  script:
    - apk update ; apk add git
    - git checkout master -- requirements.txt
    - docker build --pull -t "$CI_REGISTRY_IMAGE/install-ubuntu" for_build/ubuntu
    - docker push "$CI_REGISTRY_IMAGE/install-ubuntu"
57
58
  tags:
    - k8s
59

Amandine  PERRIN's avatar
Amandine PERRIN committed
60
61
62
build-mafft:
  only:
    - docker
63
  stage: build
Amandine  PERRIN's avatar
Amandine PERRIN committed
64
65
66
67
68
  script:
    - apk update ; apk add git
    - git checkout master -- requirements.txt
    - docker build --pull -t "$CI_REGISTRY_IMAGE/install-mafft" for_build/mafft
    - docker push "$CI_REGISTRY_IMAGE/install-mafft"
69
70
  tags:
    - k8s
Amandine  PERRIN's avatar
Amandine PERRIN committed
71

Amandine  PERRIN's avatar
Amandine PERRIN committed
72
73
74
build-mmseqs_and_fastme:
  only:
    - docker
75
  stage: build
Amandine  PERRIN's avatar
Amandine PERRIN committed
76
77
78
79
80
  script:
    - apk update ; apk add git
    - git checkout master -- requirements.txt
    - docker build --pull -t "$CI_REGISTRY_IMAGE/install-mmseqs-fastme" for_build/mmseqs_and_fastme
    - docker push "$CI_REGISTRY_IMAGE/install-mmseqs-fastme"
81
82
  tags:
    - k8s