message: use generalized build job
diff: @@ -43,6 +43,8 @@ workflows:
  # - npm_build_object_loader
  - docker-build-and-publish-server:
  + context: &docker-hub-context
  + - docker-hub
  filters: &filters-build
  tags:
  only: /^[0-9]+\.[0-9]+\.[0-9]+$/
  @@ -53,6 +55,8 @@ workflows:
  requires:
  - lint
  - test-server
  + environment:
  + SPECKLE_SERVER_PACKAGE: server
  - docker-build-and-publish-frontend:
  filters: *filters-build
  @@ -170,9 +174,18 @@ jobs:
  command: npm run build
  working_directory: 'packages/viewer'
  + docker-build-and-publish:
  + docker: *docker-image
  + steps:
  + - checkout
  + - setup_remote_docker:
  + docker_layer_caching: true
  + - run:
  + name: Build and Publish
  + command: ./.circleci/build.sh
  +
  docker-build-and-publish-server:
  - context: &docker-hub-context
  - - docker-hub
  + context: *docker-hub-context
  docker: *docker-image
  steps:
  - checkout
  