Last active
March 15, 2023 10:55
-
-
Save m-radzikowski/d49a348dde183df5a02759be827ed1d5 to your computer and use it in GitHub Desktop.
Minimal usage example of Opinionated CI Pipeline (https://github.com/merapar/opinionated-ci-pipeline)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {CDKApplication} from 'opinionated-ci-pipeline'; | |
import {MyStack} from '../lib/myStack'; | |
new CDKApplication({ | |
stacks: { | |
create: (scope, projectName, envName) => { | |
new MyStack(scope, 'MyStack', {stackName: `${projectName}-${envName}-MyStack`}); | |
}, | |
}, | |
repository: { | |
type: 'github', | |
name: 'my-org/my-repository', | |
}, | |
packageManager: 'npm', | |
pipeline: [ | |
{ | |
environment: 'test', | |
}, | |
{ | |
environment: 'staging', | |
}, | |
{ | |
environment: 'prod', | |
}, | |
], | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment