This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
cyber-narrator-cn-ui/.gitlab-ci.yml
2021-06-18 12:26:46 +08:00

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