docs(ci): Update CI configuration

This commit is contained in:
LinkinStars 2023-02-08 17:12:37 +08:00
parent 2c40a061da
commit 6bf83b2033
1 changed files with 0 additions and 40 deletions

View File

@ -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