Skip to content

Commit

Permalink
Merge pull request #25 from hypersign-protocol/CD
Browse files Browse the repository at this point in the history
updating action
  • Loading branch information
Pratap2018 authored Dec 5, 2023
2 parents f3a7c73 + ea085de commit 6edd5a4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/image-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ jobs:
uses: cschleiden/replace-tokens@v1
with:
files: '["**/deployment.yaml"]'
tokenPrefix: "{ "
tokenSuffix: " }"
tokenPrefix: __
tokenSuffix: __
env:
HOST: ${{secrets.HOST}}
ABSOLUTE_URL: ${{secrets.ABSOLUTE_URL}}
Expand All @@ -58,7 +58,4 @@ jobs:
SSL: ${{secrets.SSL}}

- name: "Deploy to GKE"
run:
echo $PORT
cat deploy/deployment.yaml
# kubectl apply -f deploy/deployment.yaml
run: kubectl apply -f deploy/deployment.yaml
18 changes: 9 additions & 9 deletions deploy/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ spec:
# protocol: TCP
env:
- name: HOST
value: { HOST }
value: __HOST__
- name: SSL
value: { HOST }
value: __HOST__
- name: ABSOLUTE_URL
value: { ABSOLUTE_URL }
value: __ABSOLUTE_URL__
- name: DATA_VAULT
value: { DATA_VAULT }
value: __DATA_VAULT__
- name: DB_URL
value: { DB_URL }
value: __DB_URL__
- name: PORT
value: { PORT }
value: __PORT__
- name: LOG
value: { LOG }
value: __LOG__

---
apiVersion: v1
Expand All @@ -52,8 +52,8 @@ spec:
selector:
app: vault-app
ports:
- port: { PORT }
targetPort: { PORT }
- port: __PORT__
targetPort: __PORT__
protocol: TCP
# apiVersion: networking.k8s.io/v1
# kind: Ingress
Expand Down

0 comments on commit 6edd5a4

Please sign in to comment.