Skip to content

Commit

Permalink
feat: switch env
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinebigard committed Oct 30, 2024
1 parent 0997c48 commit 434989b
Show file tree
Hide file tree
Showing 7 changed files with 723 additions and 566 deletions.
2 changes: 1 addition & 1 deletion .bin/scripts/release-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ fi
readonly next_version="${1}"
readonly mode=${2:-$defaultMode}

"$ROOT_DIR/.bin/scripts/build-images.sh" $next_version $mode production recette
"$ROOT_DIR/.bin/scripts/build-images.sh" $next_version $mode production recette recette2
2 changes: 1 addition & 1 deletion .github/workflows/_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
options:
- production
- recette
- recettenext
- recette2
app_version:
description: app version
type: string
Expand Down
14 changes: 3 additions & 11 deletions .infra/env.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,10 @@ host_name={{product_name}}-recette-1
env_type=recette

[recette2]
162.19.124.176
[recette2:vars]
dns_name=recette-2.{{domain_name}}.inserjeunes.incubateur.net
host_name={{product_name}}-recette-2
env_type=recette


[recettenext]
91.134.19.45
[recettenext:vars]
dns_name={{domain_name}}-recette-next.inserjeunes.incubateur.net
host_name={{product_name}}-recette
[recette2:vars]
dns_name=recette-2.orion.inserjeunes.incubateur.net
host_name=orion-recette-2
env_type=recette

[local]
Expand Down
1,262 changes: 712 additions & 550 deletions .infra/vault/vault.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .talismanrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fileignoreconfig:
- filename: .infra/files/configs/mongodb/seed.gpg
checksum: b1fa159bb2036a835b4138843b48043eca4ea374bcbb710ba4593bd39b1dfec1
- filename: .infra/vault/vault.yml
checksum: 2f2c1d508b0942ec41472a4837165966f572f374c5c5342f2bb723e3f3a2f26c
checksum: 4451dee19f613d787c9d7c98d851c6cf724ee5bb2fdabee22fd731a3ccf5cb2b
- filename: README.md
checksum: 00ac991f0b2746c5a5ffa14e2b3c5427b739c0d952aa3730efe1f234ac1fc3ca
- filename: server/.env.test
Expand Down
5 changes: 4 additions & 1 deletion docker-bake.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"recette": {
"targets": ["server", "ui-recette"]
},
"recette2": {
"targets": ["server", "ui-recette2"]
},
"local": {
"targets": ["server", "ui-local"]
}
Expand Down Expand Up @@ -47,7 +50,7 @@
"ui": {
"inherits": ["common"],
"matrix": {
"ENV": ["production", "recette", "local"]
"ENV": ["production", "recette", "recette2", "local"]
},
"name": "ui-${ENV}",
"args": {
Expand Down
2 changes: 1 addition & 1 deletion server/src/modules/core/usecases/home/home.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const homeRoute = ({ server }: { server: Server }) => {
200: z.object({
name: z.string(),
version: z.string(),
env: z.enum(["local", "recette", "recette2", "recettenext", "production", "test"]),
env: z.enum(["local", "recette", "recette2", "production", "test"]),
}),
},
},
Expand Down

0 comments on commit 434989b

Please sign in to comment.