~hokiegeek/biologist-web

3615d3d4ddb2c3a43503510b9d39db7e8eea927d — HokieGeek 7 months ago fa0ea1e 3.0.4
Reverted to running in alpine as unit tests fail in arch
2 files changed, 11 insertions(+), 5 deletions(-)

M .build.yml
M package.json
M .build.yml => .build.yml +10 -4
@@ 1,4 1,4 @@
image: archlinux
image: alpine/edge
packages:
  - nodejs
  - npm


@@ 7,26 7,32 @@ packages:
  - nss
  - docker
  - shadow
  - google-cloud-sdk
sources:
  - https://git.sr.ht/~hokiegeek/biologist-web
environment:
  PROJ: biologist-web
  GCP_PROJ: hokiegeek-net
  GCP_RUN_SVC: life
  GCLOUD_VER: 257.0.0
  CI_COMMIT_TAG: $(git --work-tree=./biologist-web --git-dir=./biologist-web/.git describe)
  CI_REGISTRY_USER_HUB: hokiegeek
  CI_REGISTRY_GCR: gcr.io
  CI_REGISTRY_USER_GCR: hokiegeek-net
  PATH: ${PATH}:$HOME/google-cloud-sdk/bin
secrets:
  - 1e1af69d-4036-40fd-9eb8-03b367bdb0eb # docker hub
  - 3c7786a3-e027-4018-bc74-42a1492176d5 # gcp key
tasks:
  - docker_setup: |
      sudo mount -t tmpfs -o size=4G /dev/null /dev/shm
      sudo service cgroups start
      sleep 2
      sudo nohup dockerd --bip 172.18.0.1/16 </dev/null >/dev/null 2>&1 &
      sudo gpasswd -a $(whoami) docker
      sleep 5
      sudo addgroup $(whoami) docker
  - gcloud_setup: |
      curl --output ./gcloud.tar.gz https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${GCLOUD_VER}-linux-x86_64.tar.gz
      tar -xvzf ./gcloud.tar.gz
      gcloud auth activate-service-account --key-file=$HOME/.gcp_cloudrunner_key.json
      gcloud config set project ${GCP_PROJ}
      yes | gcloud auth configure-docker


@@ 62,4 68,4 @@ tasks:
      docker push ${IMAGE_GCR_TAG}
      docker push ${IMAGE_GCR}:latest
  - deploy: |
      gcloud beta run deploy ${GCP_RUN_SVC} --image ${CI_REGISTRY_GCR}/${CI_REGISTRY_USER_GCR}/${PROJ} --platform managed --region us-east1 --allow-unauthenticated --memory 512Mi
      gcloud --quiet beta run deploy ${GCP_RUN_SVC} --image ${CI_REGISTRY_GCR}/${CI_REGISTRY_USER_GCR}/${PROJ} --platform managed --region us-east1 --allow-unauthenticated --memory 512Mi

M package.json => package.json +1 -1
@@ 1,6 1,6 @@
{
  "name": "biologist-web",
  "version": "3.0.3",
  "version": "3.0.4",
  "license": "MIT",
  "scripts": {
    "ng": "ng",