Skip to content

Commit

Permalink
fix: url
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgfr committed Apr 30, 2024
1 parent f0879ab commit 85bb6db
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 34 deletions.
22 changes: 13 additions & 9 deletions .kontinuous/env/dev/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
jobs:
runs:
build-frontend:
with:
buildArgs:
NEXT_PUBLIC_BASE_PATH: https://www-{{.Values.global.host}}
post-restore:
~needs: [pg, hasura]
use: psql
with:
sqlFile: .kontinuous/sql/post-restore.sql
pgSecretRefName: pg-app

hasura:
imagePackage: hasura
~needs: [build-hasura]
Expand Down Expand Up @@ -69,12 +82,3 @@ pg:
region:
~tpl~name: "cdtn-prod-backups-access-key"
key: bucket_region

jobs:
runs:
post-restore:
~needs: [pg, hasura]
use: psql
with:
sqlFile: .kontinuous/sql/post-restore.sql
pgSecretRefName: pg-app
44 changes: 23 additions & 21 deletions .kontinuous/env/preprod/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
jobs:
runs:
build-frontend:
with:
buildArgs:
NEXT_PUBLIC_BASE_PATH: https://cdtn-admin-preprod.ovh.fabrique.social.gouv.fr
post-restore:
~needs: [pg, hasura]
use: psql
with:
sqlFile: .kontinuous/sql/post-restore.sql
pgSecretRefName: pg-app
job-ingester:
~needs: [hasura]
use: trigger-cronjob
with:
cronJobName: cron-ingester
job-alert:
~needs: [job-ingester]
use: trigger-cronjob
with:
cronJobName: cron-alert

hasura:
imagePackage: hasura
~needs: [build-hasura]
Expand All @@ -18,8 +41,6 @@ www:
env:
- name: NEXTAUTH_URL
value: https://cdtn-admin-preprod.ovh.fabrique.social.gouv.fr
- name: NEXT_PUBLIC_BASE_PATH
value: https://cdtn-admin-preprod.ovh.fabrique.social.gouv.fr

pg:
~chart: pg
Expand Down Expand Up @@ -50,22 +71,3 @@ pg:
region:
~tpl~name: "cdtn-prod-backups-access-key"
key: bucket_region

jobs:
runs:
post-restore:
~needs: [pg, hasura]
use: psql
with:
sqlFile: .kontinuous/sql/post-restore.sql
pgSecretRefName: pg-app
job-ingester:
~needs: [hasura]
use: trigger-cronjob
with:
cronJobName: cron-ingester
job-alert:
~needs: [job-ingester]
use: trigger-cronjob
with:
cronJobName: cron-alert
9 changes: 7 additions & 2 deletions .kontinuous/env/prod/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
jobs:
runs:
build-frontend:
with:
buildArgs:
NEXT_PUBLIC_BASE_PATH: https://cdtn-admin.fabrique.social.gouv.fr

www:
host: cdtn-admin.fabrique.social.gouv.fr
ingress:
Expand All @@ -6,8 +13,6 @@ www:
env:
- name: NEXTAUTH_URL
value: https://cdtn-admin.fabrique.social.gouv.fr
- name: NEXT_PUBLIC_BASE_PATH
value: https://cdtn-admin.fabrique.social.gouv.fr
resources:
limits:
cpu: "200m"
Expand Down
2 changes: 0 additions & 2 deletions .kontinuous/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ www:
env:
- name: NEXTAUTH_URL
value: https://www-{{.Values.global.host}}
- name: NEXT_PUBLIC_BASE_PATH
value: https://www-{{.Values.global.host}}
resources:
limits:
cpu: "100m"
Expand Down

0 comments on commit 85bb6db

Please sign in to comment.