.gitlab-ci.yml 673 Bytes
Newer Older
Okhin's avatar
Okhin committed
1
2
3
job composer install:
  environment:
    preprod
okhin's avatar
okhin committed
4
  script:
Okhin's avatar
Okhin committed
5
6
7
8
9
10
11
12
    - composer install
    - composer update
  artifacts:
    paths:
      - vendor/
    expire_in: 1 day
  stage: build
  tags: [preprod]
13
  only:
okhin's avatar
okhin committed
14
    - master
Okhin's avatar
Okhin committed
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

  job deploy preprod:
    variables:
      BASE_PATH: /srv/piphone/frontend/
    environment:
      preprod
    script:
      - rsync -ruvC ./ ${BASE_PATH}
    stage:
      deploy
    tags: [preprod]
    only:
      - master

  job deploy production:
    variables:
      BASE_PATH: /srv/piphone/frontend
    environment:
      production
    script:
      - rscyn -ruvC ./ ${BASE_PATH}
    stage:
      deploy
    only:
      - master
    when: manual