Skip to content

Commit 82dd36a

Browse files
authored
Add redis as workflows dependency (#7755)
1 parent 9357d39 commit 82dd36a

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

deployment/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ deployWorkflows({
200200
sentry,
201201
heartbeat: heartbeatsConfig.get('webhooks'),
202202
schema,
203+
redis,
203204
});
204205

205206
const supertokens = deploySuperTokens(postgres, { dependencies: [dbMigrations] }, environment);

deployment/services/workflows.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { Docker } from './docker';
66
import { Environment } from './environment';
77
import { Observability } from './observability';
88
import { Postgres } from './postgres';
9+
import { Redis } from './redis';
910
import { Schema } from './schema';
1011
import { 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

Comments
 (0)