Skip to content

Commit

Permalink
Merge pull request #44 from hypersign-protocol/CD
Browse files Browse the repository at this point in the history
update code
  • Loading branch information
Pratap2018 authored Dec 6, 2023
2 parents 0a644c9 + 6960eca commit 4ebc309
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .deploy/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,22 @@ spec:
memory: "1Gi"
cpu: "500m"
ports:
- containerPort: 3000
- containerPort: __PORT__
readinessProbe:
tcpSocket:
port: 3000
port: __PORT__
initialDelaySeconds: 15
periodSeconds: 10
livenessProbe:
tcpSocket:
port: 3000
port: __PORT__
initialDelaySeconds: 15
periodSeconds: 10
env:
- name: HOST
value: __HOST__
- name: SSL
value: __SSL__
value: "__SSL__"
- name: ABSOLUTE_URL
value: __ABSOLUTE_URL__
- name: DATA_VAULT
Expand All @@ -64,8 +64,8 @@ spec:
selector:
app: vault-app
ports:
- port: 3000
targetPort: 3000
- port: __PORT__
targetPort: __PORT__
protocol: TCP
---

6 changes: 4 additions & 2 deletions .github/workflows/image-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ jobs:
- name: "Configure kubectl"
run: gcloud container clusters get-credentials hypermine-gke --region=asia-south1
- name: "Replace secrets"
uses: falnyr/replace-env-vars-action@master
uses: cschleiden/replace-tokens@v1
with:
filename: .deploy/deployment.yaml
files: '["**/deployment.yaml"]'
tokenPrefix: __
tokenSuffix: __
env:
HOST: ${{secrets.HOST}}
ABSOLUTE_URL: ${{secrets.ABSOLUTE_URL}}
Expand Down

0 comments on commit 4ebc309

Please sign in to comment.