diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 39d5379..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,111 +0,0 @@ -# gitzone ci_docker -image: registry.gitlab.com/hosttoday/ht-docker-node:npmci - -cache: - paths: - - .npmci-cache/ - key: '$CI_BUILD_STAGE' - -before_script: - - npm install -g @shipzone/npmci - - npmci npm prepare - -stages: - - security - - test - - release - - metadata - - pages - -# ==================== -# security stage -# ==================== - -auditProductionDependencies: - image: registry.gitlab.com/hosttoday/ht-docker-node:npmci - stage: security - script: - - npmci npm prepare - - npmci command npm install --production --ignore-scripts - - npmci command npm config set registry https://registry.npmjs.org - - npmci command npm audit --audit-level=high --only=prod --production - tags: - - lossless - - docker - -auditDevDependencies: - image: registry.gitlab.com/hosttoday/ht-docker-node:npmci - stage: security - script: - - npmci npm prepare - - npmci command npm install --ignore-scripts - - npmci command npm config set registry https://registry.npmjs.org - - npmci command npm audit --audit-level=high --only=dev - tags: - - lossless - - docker - allow_failure: true - -# ==================== -# test stage -# ==================== - -testStable: - stage: test - script: - - npmci npm prepare - - npmci node install stable - - npmci npm install - - npmci npm test - coverage: /\d+.?\d+?\%\s*coverage/ - tags: - - lossless - - docker - -testBuild: - stage: test - script: - - npmci npm prepare - - npmci node install stable - - npmci npm install - - npmci command npm run build - coverage: /\d+.?\d+?\%\s*coverage/ - tags: - - lossless - - docker - - notpriv - -# ==================== -# release stage -# ==================== - -release: - image: registry.gitlab.com/hosttoday/ht-docker-dbase:npmci - services: - - docker:stable-dind - stage: release - script: - - npmci docker login - - npmci docker build - - npmci docker test - - npmci docker push registry.gitlab.com - only: - - tags - tags: - - lossless - - docker - - priv - -# ==================== -# metadata stage -# ==================== - -trigger: - stage: metadata - script: - - npmci trigger - only: - - tags - tags: - - lossless - - docker