.gitlab-ci.yml 1.03 KB
Newer Older
Cecile Cavet's avatar
Cecile Cavet committed
1
#image: python:alpine
Cecile Cavet's avatar
Cecile Cavet committed
2
image: centos:latest
Cecile Cavet's avatar
Cecile Cavet committed
3

Cecile Cavet's avatar
Cecile Cavet committed
4 5 6
## integrate k8s cluster
deploy to staging:
#  stage: deploy
Cecile Cavet's avatar
Cecile Cavet committed
7 8
  script: 
    - echo $KUBE_URL
Cecile Cavet's avatar
Cecile Cavet committed
9 10 11 12 13
  environment:
    name: staging/$CI_COMMIT_REF_NAME
    url: https://staging.example.com/

## push code on VM
Cecile Cavet's avatar
Cecile Cavet committed
14 15 16 17 18 19 20 21 22
#deploy_prod:
#  #script: git push production HEAD:master
#  script:
#    - yum install -y openssh-clients
#    - eval $(ssh-agent -s)
#    - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
#    - scp -o stricthostkeychecking=no -r test cavet@134.158.244.5:ldc_git
#  only:
#    - master
Cecile Cavet's avatar
Cecile Cavet committed
23
    
Cecile Cavet's avatar
Cecile Cavet committed
24
## pages working
Cecile Cavet's avatar
Cecile Cavet committed
25 26
#before_script:
#   - pip install mkdocs
Cecile Cavet's avatar
files  
Cecile Cavet committed
27 28
  # Add your custom theme if not inside a theme_dir
  # (https://github.com/mkdocs/mkdocs/wiki/MkDocs-Themes)
Cecile Cavet's avatar
Cecile Cavet committed
29
  # - pip install mkdocs-toto
Cecile Cavet's avatar
Cecile Cavet committed
30

Cecile Cavet's avatar
Cecile Cavet committed
31 32 33 34 35 36 37 38 39 40
#pages:
#  stage: deploy
#  script:
#  - mkdocs build
#  - mv site public
#  artifacts:
#    paths:
#    - public
#  only:
#  - master
Cecile Cavet's avatar
Cecile Cavet committed
41 42 43 44 45 46 47 48 49 50 51 52
  
#pages:
#  stage: deploy
#  script:
#  - mkdir .public
#  - cp -r * .public
#  - mv .public public
#  artifacts:
#    paths:
#    - public
#  only:
#  - master