.gitlab-ci.yml 810 Bytes
Newer Older
1
stages:
2
  - build_staging
3
  - restart_staging
4
  - clean_up
roeland lanparty's avatar
test CI  
roeland lanparty committed
5

6 7 8 9 10 11 12 13 14
build_staging:
  stage: build_staging
  script:
    - echo "Building current develop branch"
    - ./run.sh build stg
  environment:
    name: staging
  only:
    - develop
15 16 17

restart_staging:
  stage: restart_staging
roeland lanparty's avatar
test CI  
roeland lanparty committed
18
  script:
19
    - echo "Stopping current condenser image"
20
    - ./run.sh stop stg
21
    - echo "Starting latest condenser image"
roeland lanparty's avatar
roeland lanparty committed
22
    - ./run.sh start stg
23 24
  dependencies:
    - build_staging
25 26 27 28
  environment:
    name: staging
  only:
    - develop
29 30 31 32 33 34 35 36 37 38 39 40 41 42

clean_up:
  stage: clean_up
  script:
    - echo "Cleanup filespace / unused images / containers / networks"
    - docker image prune -f
    - docker container prune -f
    - docker network prune -f
  dependencies:
    - restart_staging
  environment:
    name: staging
  only:
    - develop