message: add server build
diff: @@ -8,7 +8,7 @@ workflows:
  test-build:
  jobs:
  - - test:
  + - test-server:
  filters: &filters-every-push
  branches:
  only:
  @@ -16,10 +16,26 @@ workflows:
  - lint:
  filters: *filters-every-push
  - - build-viewer:
  - # built the npm package
  + # - build-viewer:
  + # # built the npm package
  + # requires:
  + # - lint
  + # filters: &filters-build
  + # tags:
  + # only: /^[0-9]+\.[0-9]+\.[0-9]+$/
  + # branches:
  + # only:
  + # # - main
  + # - gergo/CIRewrite
  +
  + # requires:
  + # # the result of objectloader build can be mounted here from workspace
  + # - npm_build_object_loader
  +
  + - docker-build-server:
  requires:
  - lint
  + - test-server
  filters: &filters-build
  tags:
  only: /^[0-9]+\.[0-9]+\.[0-9]+$/
  @@ -28,19 +44,12 @@ workflows:
  # - main
  - gergo/CIRewrite
  - # requires:
  - # # the result of objectloader build can be mounted here from workspace
  - # - npm_build_object_loader
  -
  - # - docker_build_server:
  - # requires:
  - # - test
  - # - lint
  -
  # - docker_build_webhook_service:
  # requires:
  # - test
  # - lint
  + # - docker-build-test-deployment:
  +
  # - docker_build_file_import_service:
  # requires:
  @@ -77,7 +86,7 @@ workflows:
  # - publish_docker_hub
  jobs:
  - test:
  + test-server:
  docker:
  - image: cimg/node:lts
  - image: cimg/redis:6.2.6
  @@ -135,6 +144,18 @@ jobs:
  - run:
  command: npm run build
  working_directory: 'packages/viewer'
  +
  + docker-build-server:
  + docker: *docker-image
  + steps:
  + - checkout
  + - setup_remote_docker:
  + docker_layer_caching: true
  + - run:
  + name: Build Server
  + command: env SPECKLE_SERVER_PACKAGE=server ./.circleci/build.sh
  +
  +
  # publish_npm:
  # context:
  # - npm_registry
  