Skip to content

Commit

Permalink
ci: cleanup ssh tunneling (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
irmannmal authored Sep 26, 2022
1 parent 0de212b commit f08bbc1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/deployer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
- releases/**
release:
types:
- published
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
4 changes: 1 addition & 3 deletions .maintain/docker/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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}"'", \
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
</div>

<div align="Center">
<h1> DeBio Network Frontend Dashboard </h1>
<h2> Decentralized Sovereign Biomed </h2>
<h1>DeBio Network Frontend Dashboard</h1>
<h2>Decentralized Sovereign Biomed</h2>
The Anonymous-First Platform for Medical and Bioinformatics Data.

<br>
Expand Down

0 comments on commit f08bbc1

Please sign in to comment.