Skip to content
Merged
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
10 changes: 6 additions & 4 deletions service/src/providers/aws-codebuild/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ let startBuildQueueProcessor = startAwsCodeBuildQueue.process(async data => {
let actionSteps = steps.filter(s => s.type === 'action');
let cleanupSteps = steps.filter(s => s.type === 'cleanup');

let envVars: Record<string, string> = await encryption.decrypt({
entityId: ctx.run.id,
encrypted: ctx.run.encryptedEnvironmentVariables
});
let envVars: Record<string, string> = JSON.parse(
await encryption.decrypt({
entityId: ctx.run.id,
encrypted: ctx.run.encryptedEnvironmentVariables
})
);

let artifactData: Record<string, { bucket: string; storageKey: string }> = {};

Expand Down
3 changes: 2 additions & 1 deletion service/src/providers/aws-codebuild/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import { env } from '../../env';
import { codebuild, logsClient } from './codeBuild';
import { ensureCodeBuildRole } from './role';

let ProjectName = env.codeBuild.CODE_BUILD_PROJECT_NAME || 'metorial-forge-codebuild-role-v1';
let ProjectName =
env.codeBuild.CODE_BUILD_PROJECT_NAME || 'metorial-forge-codebuild-project-v1';

export let ensureProject = once(async () => {
if (!codebuild || !logsClient) throw new Error('CodeBuild client not initialized');
Expand Down