From f08bbc107502df65ce38afa0104fecd2330b02bd Mon Sep 17 00:00:00 2001 From: Irman Nur Muhammad Alamsyah Date: Mon, 26 Sep 2022 11:57:00 +0700 Subject: [PATCH] ci: cleanup ssh tunneling (#520) --- .github/workflows/deployer.yaml | 15 ++++++++++++--- .maintain/docker/entrypoint.sh | 4 +--- README.md | 4 ++-- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deployer.yaml b/.github/workflows/deployer.yaml index 4783fece..41179095 100644 --- a/.github/workflows/deployer.yaml +++ b/.github/workflows/deployer.yaml @@ -4,7 +4,6 @@ on: push: branches: - main - - releases/** release: types: - published @@ -97,7 +96,12 @@ jobs: --set autoscaling.maxReplicas=5 \ --set-string nodeSelector.node_pool=general \ --set-string nodeSelector."iam\.gke\.io/gke-metadata-server-enabled"="true" - HTTPS_PROXY=127.0.0.1:8888 kubectl rollout status deployment/${{ github.event.repository.name }} + HTTPS_PROXY=127.0.0.1:8888 kubectl rollout status deployment/${{ github.event.repository.name }} + - name: Clean Up Tunneling SSH Connections + if: always() + run: | + kill -9 $(lsof -ti:8888) + gcloud compute os-login ssh-keys remove --key-file=/home/runner/.ssh/google_compute_engine.pub deploy-to-mainnet: needs: build-and-push-docker-image @@ -171,4 +175,9 @@ jobs: --set autoscaling.maxReplicas=5 \ --set-string nodeSelector.node_pool=general \ --set-string nodeSelector."iam\.gke\.io/gke-metadata-server-enabled"="true" - HTTPS_PROXY=127.0.0.1:8888 kubectl rollout status deployment/${{ github.event.repository.name }} + HTTPS_PROXY=127.0.0.1:8888 kubectl rollout status deployment/${{ github.event.repository.name }} + - name: Clean Up Tunneling SSH Connections + if: always() + run: | + kill -9 $(lsof -ti:8888) + gcloud compute os-login ssh-keys remove --key-file=/home/runner/.ssh/google_compute_engine.pub diff --git a/.maintain/docker/entrypoint.sh b/.maintain/docker/entrypoint.sh index be45229c..96657d25 100755 --- a/.maintain/docker/entrypoint.sh +++ b/.maintain/docker/entrypoint.sh @@ -1,9 +1,7 @@ #!/bin/sh -export VUE_APP_VERSION=`echo $(cat app_version.txt)` - +VUE_APP_VERSION=`echo $(cat app_version.txt)` JSON_STRING='window.configs = { \ - "NODE_ENV":"'"${NODE_ENV}"'", \ "VUE_APP_VERSION":"'"${VUE_APP_VERSION}"'", \ "VUE_APP_RECAPTCHA_SITE_KEY":"'"${VUE_APP_RECAPTCHA_SITE_KEY}"'", \ "VUE_APP_ROLE":"'"${VUE_APP_ROLE}"'", \ diff --git a/README.md b/README.md index 81584dd6..b2c8cdb5 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@
-

DeBio Network Frontend Dashboard

-

Decentralized Sovereign Biomed

+

DeBio Network Frontend Dashboard

+

Decentralized Sovereign Biomed

The Anonymous-First Platform for Medical and Bioinformatics Data.