@@ -6,6 +6,7 @@ import { Docker } from './docker';
66import { Environment } from './environment' ;
77import { Observability } from './observability' ;
88import { Postgres } from './postgres' ;
9+ import { Redis } from './redis' ;
910import { Schema } from './schema' ;
1011import { Sentry } from './sentry' ;
1112
@@ -25,6 +26,7 @@ export function deployWorkflows({
2526 observability,
2627 postmarkSecret,
2728 schema,
29+ redis,
2830} : {
2931 postgres : Postgres ;
3032 observability : Observability ;
@@ -35,6 +37,7 @@ export function deployWorkflows({
3537 sentry : Sentry ;
3638 postmarkSecret : PostmarkSecret ;
3739 schema : Schema ;
40+ redis : Redis ;
3841} ) {
3942 return (
4043 new ServiceDeployment (
@@ -60,7 +63,7 @@ export function deployWorkflows({
6063 image,
6164 replicas : environment . podsConfig . general . replicas ,
6265 } ,
63- [ ] ,
66+ [ redis . deployment , redis . service ] ,
6467 )
6568 // PG
6669 . withSecret ( 'POSTGRES_HOST' , postgres . pgBouncerSecret , 'host' )
@@ -73,6 +76,10 @@ export function deployWorkflows({
7376 . withSecret ( 'EMAIL_PROVIDER_POSTMARK_TOKEN' , postmarkSecret , 'token' )
7477 . withSecret ( 'EMAIL_PROVIDER_POSTMARK_MESSAGE_STREAM' , postmarkSecret , 'messageStream' )
7578 . withConditionalSecret ( sentry . enabled , 'SENTRY_DSN' , sentry . secret , 'dsn' )
79+ // Redis
80+ . withSecret ( 'REDIS_HOST' , redis . secret , 'host' )
81+ . withSecret ( 'REDIS_PORT' , redis . secret , 'port' )
82+ . withSecret ( 'REDIS_PASSWORD' , redis . secret , 'password' )
7683 . deploy ( )
7784 ) ;
7885}
0 commit comments