~hokiegeek/hg-tea

bae8e3db5b8c6f32457f51d10cd62f860e3b63f2 — HokieGeek 7 months ago b709832 9.17.1
Refactoring to serve as a Cloud Run service
3 files changed, 7 insertions(+), 8 deletions(-)

M .build.yml
M Dockerfile
M package.json
M .build.yml => .build.yml +3 -3
@@ 53,6 53,6 @@ tasks:
      cat $HOME/.image_registry_token | docker login --username ${CI_REGISTRY_USER} --password-stdin ${CI_REGISTRY}
      docker push $IMAGE_TAG
      docker push $IMAGE_LATEST_TAG
  - deploy: |
      cd ${PROJ}/prod
      ansible-playbook -i ${DEPLOY_HOST}, -u ${ADMIN_USER} -e image=${CI_REGISTRY}/hokiegeek/${PROJ}:latest ./ansible.yml
      # - deploy: |
      #     cd ${PROJ}/prod
      #     ansible-playbook -i ${DEPLOY_HOST}, -u ${ADMIN_USER} -e image=${CI_REGISTRY}/hokiegeek/${PROJ}:latest ./ansible.yml

M Dockerfile => Dockerfile +2 -3
@@ 1,3 1,2 @@
FROM nginx
RUN sed -i '/location \/ {/{n;n;s/.*/index index.html;\ntry_files $uri $uri\/ \/index.html =404;/}' /etc/nginx/conf.d/default.conf
COPY dist/ /usr/share/nginx/html/
FROM quay.io/hokiegeek/cloudrunner:latest
COPY dist/* /web/

M package.json => package.json +2 -2
@@ 1,12 1,12 @@
{
  "name": "hg-tea",
  "version": "9.17.0",
  "version": "9.17.1",
  "license": "MIT",
  "angular-cli": {},
  "scripts": {
    "ng": "ng",
    "serve": "ng serve --base-href . --prod --configuration production",
    "build": "ng build --base-href . --prod --build-optimizer --configuration production",
    "build": "ng build --prod --build-optimizer --configuration production",
    "test": "ng test --browsers ChromeHeadlessNoSandbox --watch=false --code-coverage",
    "test-dev": "CHROME_BIN=/usr/bin/google-chrome-stable ng test --browsers Chrome --code-coverage --watch --source-map=false",
    "analyze": "ng build --base-href . --prod --build-optimizer --configuration production --stats-json && webpack-bundle-analyzer dist/stats.json",