Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
ksyun-CICD-test
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 787b7a68
authored
May 06, 2020
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
1 parent
087ac36c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
deploy.sh
deploy.sh
View file @
787b7a6
...
@@ -5,7 +5,7 @@ fu_host=192.168.1.36
...
@@ -5,7 +5,7 @@ fu_host=192.168.1.36
test_host
=
192.168.1.51
test_host
=
192.168.1.51
project_workspace
=
/tmp
project_workspace
=
/tmp
IMAGE
=
nginx:latest
IMAGE
=
nginx:latest
DOCKER_REGISTRY
=
hub.kce.ksyun.com/kpl_k8s
DOCKER_REGISTRY
=
"hub.kce.ksyun.com/kpl_k8s"
#########################################
#########################################
sed_yaml
()
{
sed_yaml
()
{
echo
"修改image名字"
echo
"修改image名字"
...
@@ -15,8 +15,8 @@ sed -i s@IMAGE@$IMAGE@g `find -type f -name "*.yaml"`
...
@@ -15,8 +15,8 @@ sed -i s@IMAGE@$IMAGE@g `find -type f -name "*.yaml"`
################################
################################
recover_yaml
()
{
recover_yaml
()
{
echo
"恢复yaml模板"
echo
"恢复yaml模板"
sed -i s@
$DOCKER_REGISTRY
@
hub.kce.ksyun.com
@g
`
find -type f -name
"*.yaml"
`
sed -i s@
$DOCKER_REGISTRY
@
DOCKER_REGISTR
@g
`
find -type f -name
"*.yaml"
`
sed -i s@
$IMAGE
@
nginx:latestg
`
find -type f -name
"*.yaml"
`
sed -i s@
$IMAGE
@
IMAGE
`
find -type f -name
"*.yaml"
`
}
}
###################################
###################################
delt_all
()
{
delt_all
()
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment