Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: versionning des variables applicatives #857

Draft
wants to merge 4 commits into
base: vp/isolate_test_conf
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/review-app-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ jobs:
run: |
$CLEVER_CLI link $REVIEW_APP_NAME --org $REVIEW_APPS_ORGANIZATION_NAME
$CLEVER_CLI env set COMMU_FQDN "${{ env.DEPLOY_URL }}"
$CLEVER_CLI env set ENVIRONMENT "REVIEW-APP"
$CLEVER_CLI service link-addon $S3_ADDON
$CLEVER_CLI service link-addon $CONFIGURATION_ADDON

Expand Down
2 changes: 2 additions & 0 deletions clevercloud/pre_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
git clone "$ITOU_SECRETS_HTTPS_REPO_URL" secrets-vault
sops -d secrets-vault/c1/"$ENVIRONMENT".enc.env > .env
4 changes: 4 additions & 0 deletions clevercloud/pre_run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cd secrets-vault || exit
git pull
cd - || exit
sops -d secrets-vault/c1/"$ENVIRONMENT".enc.env > .env
2 changes: 1 addition & 1 deletion config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
SECRET_KEY = os.getenv("DJANGO_SECRET_KEY")

DEBUG = os.getenv("DJANGO_DEBUG", "False") == "True"
ENVIRONMENT = Environment.PROD
ENVIRONMENT = os.getenv("ENVIRONMENT", Environment.PROD)

PARKING_PAGE = os.getenv("PARKING_PAGE", "False") == "True"

Expand Down
Loading