.gitlab-ci.yml 1.97 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"
Amandine  PERRIN's avatar
Amandine PERRIN committed
8
9
10
11

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

Amandine  PERRIN's avatar
Amandine PERRIN committed
12
13
14
build-test-image:
  only:
    - docker
15
  stage: build
Amandine  PERRIN's avatar
Amandine PERRIN committed
16
17
18
19
20
  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"
21

Amandine  PERRIN's avatar
Amandine PERRIN committed
22
23
24
build-install-barrnap:
  only:
    - docker
25
  stage: build
Amandine  PERRIN's avatar
Amandine PERRIN committed
26
27
28
29
30
  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"
31

32
build-install-annote-and-quicktree:
33
34
  only:
    - docker
35
  stage: build
36
37
38
  script:
    - apk update ; apk add git
    - git checkout master -- requirements.txt
39
40
    - 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"
41

Amandine  PERRIN's avatar
Amandine PERRIN committed
42
43
44
build-ubuntu:
  only:
    - docker
45
  stage: build
Amandine  PERRIN's avatar
Amandine PERRIN committed
46
47
48
49
50
  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"
51

Amandine  PERRIN's avatar
Amandine PERRIN committed
52
53
54
build-mafft:
  only:
    - docker
55
  stage: build
Amandine  PERRIN's avatar
Amandine PERRIN committed
56
57
58
59
60
  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"
Amandine  PERRIN's avatar
Amandine PERRIN committed
61

Amandine  PERRIN's avatar
Amandine PERRIN committed
62
63
64
build-mmseqs_and_fastme:
  only:
    - docker
65
  stage: build
Amandine  PERRIN's avatar
Amandine PERRIN committed
66
67
68
69
70
  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"