Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
ppt_server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Li Feifei
ppt_server
Commits
4b35839e
Commit
4b35839e
authored
Mar 21, 2020
by
Li Feifei
Browse files
Options
Browse Files
Download
Plain Diff
merge test
parents
9dfa7766
1bf40be0
Pipeline
#8935
passed with stages
in 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
36 deletions
+19
-36
.gitlab-ci.yml
.gitlab-ci.yml
+19
-36
No files found.
.gitlab-ci.yml
View file @
4b35839e
stages
:
-
build
-
make
-
test
-
deploy
variables
:
VERSION
:
"
3.$CI_PIPELINE_ID"
BUILDDIR
:
"
/builds"
LOCALDIR
:
"
/opt/gitlab-runner/builds"
NAMESPACE
:
"
srs-prd"
projName
:
"
ppt-server"
ppt-server-build
:
stage
:
build
before_script
:
-
source /builds/cicd/base.sh
docker-build
:
tags
:
-
test-ppt-server-shell
only
:
-
test
retry
:
2
-
ppt-server-shell
stage
:
build
retry
:
1
script
:
#- GO111MODULE=auto
#- mkdir -p ${BUILDDIR}/ppt-server
#- rm -rf ${BUILDDIR}/ppt-server/*
#- go build -o ${BUILDDIR}/ppt-server/ppt-server
#- cp -f Dockerfile ${BUILDDIR}/ppt-server/
#- cp -rf conf ${BUILDDIR}/ppt-server/
#- cd ${BUILDDIR}/ppt-server/
-
docker build -t registry.cn-beijing.aliyuncs.com/offcn_llive/ppt-server:$VERSION .
-
docker push registry.cn-beijing.aliyuncs.com/offcn_llive/ppt-server:$VERSION
-
docker rmi registry.cn-beijing.aliyuncs.com/offcn_llive/ppt-server:$VERSION &
ppt-server-deploy
:
stage
:
deploy
-
source $PROJDIR/$projName/build.sh
k8s-deploy
:
tags
:
-
test-ppt-server-shell
only
:
-
test
retry
:
2
before_script
:
-
CLUSTER="hb2-center"
-
ppt-server-shell
stage
:
deploy
retry
:
1
script
:
-
set -x
-
for cs in ${CLUSTER[@]};do \
-
kubectl set image -n ${NAMESPACE} deployment/ppt-server-deployment ppt-server=registry.cn-beijing.aliyuncs.com/offcn_llive/ppt-server:$VERSION; \
-
done
\ No newline at end of file
-
set -xe
-
source $PROJDIR/$projName/deploy.sh
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