Commit 96ec6b50 authored by Cecile Cavet's avatar Cecile Cavet
Browse files

Update .gitlab-ci.yml

parent 9b5841a3
Pipeline #19203 passed with stage
in 17 seconds
...@@ -4,23 +4,24 @@ image: centos:latest ...@@ -4,23 +4,24 @@ image: centos:latest
## integrate k8s cluster ## integrate k8s cluster
deploy to staging: deploy to staging:
# stage: deploy # stage: deploy
script: make deploy script:
- echo $KUBE_URL
environment: environment:
name: staging/$CI_COMMIT_REF_NAME name: staging/$CI_COMMIT_REF_NAME
url: https://staging.example.com/ url: https://staging.example.com/
## push code on VM ## push code on VM
deploy_prod: #deploy_prod:
#script: git push production HEAD:master # #script: git push production HEAD:master
script: # script:
- yum install -y openssh-clients # - yum install -y openssh-clients
- eval $(ssh-agent -s) # - eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null # - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- scp -o stricthostkeychecking=no -r test cavet@134.158.244.5:ldc_git # - scp -o stricthostkeychecking=no -r test cavet@134.158.244.5:ldc_git
only: # only:
- master # - master
## pages ## pages working
#before_script: #before_script:
# - pip install mkdocs # - pip install mkdocs
# Add your custom theme if not inside a theme_dir # Add your custom theme if not inside a theme_dir
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment