Commit 4b35839e by Li Feifei

merge test

parents 9dfa7766 1bf40be0
Pipeline #8935 passed with stages
in 19 seconds
stages: stages:
- build - build
- make - test
- deploy - deploy
variables: variables:
VERSION: "3.$CI_PIPELINE_ID" projName: "ppt-server"
BUILDDIR: "/builds"
LOCALDIR: "/opt/gitlab-runner/builds"
NAMESPACE: "srs-prd"
ppt-server-build: before_script:
stage: build - source /builds/cicd/base.sh
docker-build:
tags: tags:
- test-ppt-server-shell - ppt-server-shell
only: stage: build
- test retry: 1
retry: 2
script: script:
#- GO111MODULE=auto - source $PROJDIR/$projName/build.sh
#- mkdir -p ${BUILDDIR}/ppt-server
#- rm -rf ${BUILDDIR}/ppt-server/* k8s-deploy:
#- 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
tags: tags:
- test-ppt-server-shell - ppt-server-shell
only: stage: deploy
- test retry: 1
retry: 2
before_script:
- CLUSTER="hb2-center"
script: script:
- set -x - set -xe
- for cs in ${CLUSTER[@]};do \ - source $PROJDIR/$projName/deploy.sh
- 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
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