27 lines
500 B
YAML
27 lines
500 B
YAML
stages:
|
|
- build_project
|
|
- build_image
|
|
|
|
build_project:
|
|
stage: build_project
|
|
script:
|
|
- echo "npm install ..."
|
|
- npm install
|
|
- echo "npm run build"
|
|
- npm run build
|
|
only:
|
|
- dev-cicd
|
|
tags:
|
|
- GN-XXG-Server
|
|
|
|
build_image:
|
|
stage: build_image
|
|
script:
|
|
- docker build -t "${CI_REGISTRY_IMAGE}_cn-ui:latest" .
|
|
- docker push "192.168.40.153:9080/cyber-narrator/${CI_REGISTRY_IMAGE}_cn-ui:latest"
|
|
when: on_success
|
|
only:
|
|
- dev-cicd
|
|
tags:
|
|
- GN-XXG-Server
|