mirror of https://gitee.com/answerdev/answer.git
docs(ci): Update CI configuration
This commit is contained in:
parent
2c40a061da
commit
6bf83b2033
|
@ -5,48 +5,8 @@ include:
|
|||
file: ".deploy-helm.yml"
|
||||
|
||||
stages:
|
||||
- compile-html
|
||||
- compile-golang
|
||||
- push
|
||||
- deploy-dev
|
||||
|
||||
"compile the html and other static files":
|
||||
image: node:16
|
||||
stage: compile-html
|
||||
before_script:
|
||||
- npm config set registry https://repo.huaweicloud.com/repository/npm/
|
||||
- make install-ui-packages
|
||||
script:
|
||||
- make ui
|
||||
artifacts:
|
||||
paths:
|
||||
- ./build
|
||||
|
||||
"compile the golang project":
|
||||
image: golang:1.18
|
||||
stage: compile-golang
|
||||
# before_script:
|
||||
# - export GOPROXY=https://goproxy.cn,direct
|
||||
script:
|
||||
- make build
|
||||
artifacts:
|
||||
paths:
|
||||
- ./answer
|
||||
|
||||
"build docker images and push":
|
||||
stage: push
|
||||
# before_script:
|
||||
# - export GOPROXY=https://goproxy.cn,direct
|
||||
extends: .docker-build-push
|
||||
only:
|
||||
- test
|
||||
variables:
|
||||
DockerNamespace: sf_app
|
||||
DockerImage: answer
|
||||
DockerTag: "$CI_COMMIT_SHORT_SHA latest"
|
||||
DockerfilePath: .
|
||||
PushPolicy: qingcloud
|
||||
|
||||
"deploy-to-local-develop-environment":
|
||||
stage: deploy-dev
|
||||
extends: .deploy-helm
|
||||
|
|
Loading…
Reference in New Issue