.gitlab-ci.yml 518 Bytes
Newer Older
militarpancho's avatar
militarpancho committed
1
2
3
4
stages:
  - push
  - deploy
  - clean
5
6

before_script:
7
  - make -e login
8
9
10
11

stages:
  - push
  - deploy
militarpancho's avatar
militarpancho committed
12
  - clean
13

militarpancho's avatar
militarpancho committed
14
.image: &image_definition
15
16
  stage: push
  script:
militarpancho's avatar
militarpancho committed
17
    - make -e push-latest
militarpancho's avatar
militarpancho committed
18
19
20
21
  only:
    - tags
    - triggers

militarpancho's avatar
militarpancho committed
22
push-latest:
militarpancho's avatar
militarpancho committed
23
24
25
26
27
28
  <<: *image_definition
  variables:
    PYTHON_VERSION: latest
  only:
    - tags
    - triggers
29

30
31
deploy:
  stage: deploy
militarpancho's avatar
militarpancho committed
32
  environment: production
33
34
35
  script:
    - make -e deploy
  only:
militarpancho's avatar
militarpancho committed
36
37
38
39
40
41
42
    - tags
    - triggers
clean :
  stage: clean
  script:
    - make -e clean
  when: manual