Skip to content

Commit

Permalink
Add dotdigital auth env var
Browse files Browse the repository at this point in the history
  • Loading branch information
faucomte97 committed Apr 9, 2024
1 parent e1cb716 commit 23ed48d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/actions/deploy_gcloud/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ inputs:
dotmailer-default-preferences:
description: Dotmailer default preferences
required: true
dotdigital-auth:
description: Dotdigital access key
required: true
recaptcha-public-key:
description: Recaptcha public key
required: true
Expand Down Expand Up @@ -251,6 +254,7 @@ runs:
DOTMAILER_USER: ${{ inputs.dotmailer-user }}
DOTMAILER_PASSWORD: ${{ inputs.dotmailer-password }}
DOTMAILER_DEFAULT_PREFERENCES: ${{ inputs.dotmailer-default-preferences }}
DOTDIGITAL_AUTH: ${{ inputs.dotdigital-auth }}
RECAPTCHA_PUBLIC_KEY: ${{ inputs.recaptcha-public-key }}
RECAPTCHA_PRIVATE_KEY: ${{ inputs.recaptcha-private-key }}
REDIS_IP: ${{ inputs.redis-ip }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy_default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
dotmailer-user: ${{ secrets.DOTMAILER_USER }}
dotmailer-password: ${{ secrets.DOTMAILER_PASSWORD }}
dotmailer-default-preferences: ${{ secrets.DOTMAILER_DEFAULT_PREFERENCES }}
dotdigital-auth: ${{ secrets.DOTDIGITAL_AUTH }}
recaptcha-public-key: ${{ secrets.RECAPTCHA_PUBLIC_KEY }}
recaptcha-private-key: ${{ secrets.RECAPTCHA_PRIVATE_KEY }}
redis-ip: ${{ secrets.REDIS_IP }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
dotmailer-user: ${{ secrets.DOTMAILER_USER }}
dotmailer-password: ${{ secrets.DOTMAILER_PASSWORD }}
dotmailer-default-preferences: ${{ secrets.DOTMAILER_DEFAULT_PREFERENCES }}
dotdigital-auth: ${{ secrets.DOTDIGITAL_AUTH }}
recaptcha-public-key: ${{ secrets.RECAPTCHA_PUBLIC_KEY }}
recaptcha-private-key: ${{ secrets.RECAPTCHA_PRIVATE_KEY }}
redis-ip: ${{ secrets.REDIS_IP }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
dotmailer-user: ${{ secrets.DOTMAILER_USER }}
dotmailer-password: ${{ secrets.DOTMAILER_PASSWORD }}
dotmailer-default-preferences: ${{ secrets.DOTMAILER_DEFAULT_PREFERENCES }}
dotdigital-auth: ${{ secrets.DOTDIGITAL_AUTH }}
recaptcha-public-key: ${{ secrets.RECAPTCHA_PUBLIC_KEY }}
recaptcha-private-key: ${{ secrets.RECAPTCHA_PRIVATE_KEY }}
redis-ip: ${{ secrets.REDIS_IP }}
Expand Down
1 change: 1 addition & 0 deletions app.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ env_variables:
DOTMAILER_USER: '${DOTMAILER_USER}'
DOTMAILER_PASSWORD: '${DOTMAILER_PASSWORD}'
DOTMAILER_DEFAULT_PREFERENCES: '${DOTMAILER_DEFAULT_PREFERENCES}'
DOTDIGITAL_AUTH: '${DOTDIGITAL_AUTH}'
DJANGO_SECRET: '"${DJANGO_SECRET}"'
REDIS_IP: '${REDIS_IP}'
REDIS_PORT: '${REDIS_PORT}'
Expand Down
1 change: 1 addition & 0 deletions django_site/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
DOTMAILER_USER = os.getenv("DOTMAILER_USER", "")
DOTMAILER_PASSWORD = os.getenv("DOTMAILER_PASSWORD", "")
DOTMAILER_DEFAULT_PREFERENCES = json.loads(os.getenv("DOTMAILER_DEFAULT_PREFERENCES", "[]") or "[]")
DOTDIGITAL_AUTH = os.environ["DOTDIGITAL_AUTH"]

REACT_APP_KURONO_BADGES_URL = os.getenv(
"REACT_APP_KURONO_BADGES_URL", "https://development-kurono-badges-dot-decent-digit-629.appspot.com"
Expand Down

0 comments on commit 23ed48d

Please sign in to comment.