Skip to content

Commit

Permalink
feat: change split domain (#1577)
Browse files Browse the repository at this point in the history
  • Loading branch information
r-p-alves authored Oct 18, 2024
1 parent c3555f1 commit 34faefe
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 24 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy_backend_frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
CHART_OVERRIDE_PATH: './infrastructure/values/development.yaml'
secrets: inherit


deploy_prod:
name: Deploy PROD
needs: deploy_dev
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/on_call_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: "check is AZURE_CREDENTIALS exists"
env:
super_secret: ${{ secrets.AZURE_CREDENTIALS }}
if: ${{ env.super_secret == '' }}
run: 'echo "echo the secret \"AZURE_CREDENTIALS\" has not been made; echo please go to \"settings \> secrets \> actions\" to create it"'

- name: Azure login
uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

# Use kubelogin to configure your kubeconfig for Azure auth
- name: Set up kubelogin for non-interactive login
uses: azure/use-kubelogin@v1
with:
Expand All @@ -50,5 +43,4 @@ jobs:
uses: azure/[email protected]

- name: Deploy
#environment: ${{ inputs.ENVIRONMENT }}
run: helm upgrade --install split ${{ env.CHART-PATH }} -f ${{ inputs.CHART_OVERRIDE_PATH }} --set global.image.tag=${{ env.TAG }} --namespace=split-${{ inputs.ENVIRONMENT }} --create-namespace --atomic
14 changes: 7 additions & 7 deletions infrastructure/values/development.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
frontend:
ingress:
hosts:
- host: dev.split.xgeeks.tech
- host: split-dev.xgeeks.com
paths:
- path: /
pathType: ImplementationSpecific
tls:
- hosts:
- dev.split.xgeeks.tech
- split-dev.xgeeks.com
secretName: split-frontend-tls

environment:
NODE_ENV: dev
NEXT_PUBLIC_NEXTAUTH_URL: https://dev.split-api.xgeeks.tech
NEXT_PUBLIC_BACKEND_URL: https://dev.split-api.xgeeks.tech
NEXT_PUBLIC_NEXTAUTH_URL: https://split-dev.xgeeks.com
NEXT_PUBLIC_BACKEND_URL: https://split-dev-api.xgeeks.com
NEXT_PUBLIC_ENABLE_AZURE: true
NEXT_PUBLIC_EXPIRATION_TIME: 80000
NEXT_PUBLIC_LOGIN_SSO_ONLY: true
Expand All @@ -22,15 +22,15 @@ frontend:
backend:
ingress:
hosts:
- host: dev.split-api.xgeeks.tech
- host: split-dev-api.xgeeks.com
paths:
- path: /
pathType: ImplementationSpecific
tls:
- hosts:
- dev.split-api.xgeeks.tech
- split-dev-api.xgeeks.com
secretName: split-backend-tls

environment:
NODE_ENV: dev
NEXT_PUBLIC_NEXTAUTH_URL: https://dev.split-api.xgeeks.tech
NEXT_PUBLIC_NEXTAUTH_URL: https://split-dev.xgeeks.com
16 changes: 8 additions & 8 deletions infrastructure/values/production.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
frontend:
ingress:
hosts:
- host: split.xgeeks.tech
- host: split.xgeeks.com
paths:
- path: /
pathType: ImplementationSpecific
tls:
- hosts:
- split.xgeeks.tech
- split.xgeeks.com
secretName: split-frontend-tls

environment:
NODE_ENV: prod
NEXT_PUBLIC_NEXTAUTH_URL: https://split.xgeeks.tech
NEXT_PUBLIC_BACKEND_URL: https://split-api.xgeeks.tech
NEXT_PUBLIC_NEXTAUTH_URL: https://split.xgeeks.com
NEXT_PUBLIC_BACKEND_URL: https://split-api.xgeeks.com
NEXT_PUBLIC_ENABLE_AZURE: true
NEXT_PUBLIC_EXPIRATION_TIME: 80000
NEXT_PUBLIC_LOGIN_SSO_ONLY: false
Expand All @@ -23,17 +23,17 @@ backend:
ingress:
annotations:
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-origin: "https://split.xgeeks.tech"
nginx.ingress.kubernetes.io/cors-allow-origin: "https://split.xgeeks.com"
hosts:
- host: split-api.xgeeks.tech
- host: split-api.xgeeks.com
paths:
- path: /
pathType: ImplementationSpecific
tls:
- hosts:
- split-api.xgeeks.tech
- split-api.xgeeks.com
secretName: split-backend-tls

environment:
NODE_ENV: prod
NEXT_PUBLIC_NEXTAUTH_URL: https://split.xgeeks.tech
NEXT_PUBLIC_NEXTAUTH_URL: https://split.xgeeks.com

0 comments on commit 34faefe

Please sign in to comment.