Skip to content

Commit

Permalink
Add environment to job schemas (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
khamilowicz authored Dec 17, 2024
1 parent d171d1b commit 24c699e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/eas-build-job/src/android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ export interface Job {

initiatingUserId: string;
appId: string;

environment?: 'production' | 'preview' | 'development';
}

const SecretsSchema = Joi.object({
Expand Down Expand Up @@ -183,4 +185,6 @@ export const JobSchema = Joi.object({

initiatingUserId: Joi.string().required(),
appId: Joi.string().required(),

environment: Joi.string().valid('production', 'preview', 'development'),
});
4 changes: 4 additions & 0 deletions packages/eas-build-job/src/ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ export interface Job {

initiatingUserId: string;
appId: string;

environment?: 'production' | 'preview' | 'development';
}

const SecretsSchema = Joi.object({
Expand Down Expand Up @@ -217,4 +219,6 @@ export const JobSchema = Joi.object({

initiatingUserId: Joi.string().required(),
appId: Joi.string().required(),

environment: Joi.string().valid('production', 'preview', 'development'),
});

0 comments on commit 24c699e

Please sign in to comment.