~hokiegeek/hg-tea

52b05927dcf8cee2707466d07f97d7453d3cc881 — HokieGeek 7 months ago bae8e3d 9.17.2
Switching image to GCR and added strip argument to cloudrunner
3 files changed, 6 insertions(+), 9 deletions(-)

M .build.yml
M Dockerfile
M package.json
M .build.yml => .build.yml +4 -8
@@ 13,13 13,12 @@ sources:
environment:
  PROJ: hg-tea
  CI_COMMIT_TAG: $(git --work-tree=./hg-tea --git-dir=./hg-tea/.git describe)
  CI_REGISTRY: quay.io
  CI_REGISTRY_USER: hokiegeek
  CI_REGISTRY: gcr.io
  CI_REGISTRY_USER: hokiegeek-net
  ADMIN_USER: hokiegeek
  DEPLOY_HOST: tea.hokiegeek.net
secrets:
  - d675b280-e56b-4c0f-9908-549c70a7e2f9
  - d036fc7d-4eb9-4589-9d37-f61214d4fcb3
  - 3c7786a3-e027-4018-bc74-42a1492176d5 # gcp key
tasks:
  - setup: |
      sudo mount -t tmpfs -o size=4G /dev/null /dev/shm


@@ 50,9 49,6 @@ tasks:
      IMAGE_TAG=${IMAGE}:${CI_COMMIT_TAG}
      IMAGE_LATEST_TAG=${IMAGE}:latest
      docker build -t $IMAGE_TAG -t $IMAGE_LATEST_TAG .
      cat $HOME/.image_registry_token | docker login --username ${CI_REGISTRY_USER} --password-stdin ${CI_REGISTRY}
      cat $HOME/.gcp_cloudrunner_key.json | docker login -u _json_key --password-stdin https://${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

M Dockerfile => Dockerfile +1 -0
@@ 1,2 1,3 @@
FROM quay.io/hokiegeek/cloudrunner:latest
COPY dist/* /web/
CMD ["--strip", "/db,/input"]

M package.json => package.json +1 -1
@@ 1,6 1,6 @@
{
  "name": "hg-tea",
  "version": "9.17.1",
  "version": "9.17.2",
  "license": "MIT",
  "angular-cli": {},
  "scripts": {