Skip to content

Commit

Permalink
Change pipeline trigger branch to main
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswilty committed Jul 26, 2024
1 parent 08450d6 commit 58c487b
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions cloud/lib/pipeline-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,16 @@ export class PipelineStack extends Stack {
const generateResourceId = resourceId(scope);
const stage = stageName(scope);

const sourceCode = CodePipelineSource.connection(
'ScottLogic/prompt-injection',
// FIXME Change branch to 'main' once tested:
'feature/aws-cloud-infrastructure',
{
connectionArn: `arn:aws:codestar-connections:${env.region}:${env.account}:connection/05c0f0a4-2233-4269-a697-33a339f8a6bc`,
}
);
const sourceCode = CodePipelineSource.connection('ScottLogic/prompt-injection', 'main', {
connectionArn: `arn:aws:codestar-connections:${env.region}:${env.account}:connection/05c0f0a4-2233-4269-a697-33a339f8a6bc`,
});

const hostBucketName = generateResourceId('host-bucket');

const pipeline = new CodePipeline(this, generateResourceId('pipeline'), {
synth: new ShellStep('Synth', {
input: sourceCode,
installCommands: ['npm ci'],
// FIXME Change to cdk:synth:prod once tested:
commands: ['cd cloud', `npm run cdk:synth -- --context STAGE=${stage}`],
primaryOutputDirectory: 'cloud/cdk.out',
}),
Expand Down

0 comments on commit 58c487b

Please sign in to comment.