Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Cecile Cavet
test-ci
Commits
96ec6b50
Commit
96ec6b50
authored
Nov 19, 2018
by
Cecile Cavet
Browse files
Update .gitlab-ci.yml
parent
9b5841a3
Pipeline
#19203
passed with stage
in 17 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
.gitlab-ci.yml
.gitlab-ci.yml
+12
-11
No files found.
.gitlab-ci.yml
View file @
96ec6b50
...
...
@@ -4,23 +4,24 @@ image: centos:latest
## integrate k8s cluster
deploy to staging
:
# stage: deploy
script
:
make deploy
script
:
-
echo $KUBE_URL
environment
:
name
:
staging/$CI_COMMIT_REF_NAME
url
:
https://staging.example.com/
## push code on VM
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
#
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
## pages
## pages
working
#before_script:
# - pip install mkdocs
# Add your custom theme if not inside a theme_dir
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment