- Choose pipeline settings
- Pipeline name:
imaginary
- Pipeline name:
- Source
- Source provider:
GitHub (Version 2)
- Connect to GitHub
- Connection name: imaginary
- GitHub Apps: artidis (12370322)
- Repository name: artids/imaginary
- Branch name: master
- Output artifact format: Full clone
- Source provider:
- Build
- Build provider: AWS CodeBuild
- Region: Europe (Frankfurt)
- Project name
- Create project
- Project configuration
- Project name: imaginary
- Environment
- Environment image: Managed image
- Operation system: Ubuntu
- Runtime: Standard
- Image: aws/codebuild/standard:4.0
- Image version: Alaways use the latest image for this runtime version
- Environment type: Linux
- Privileged: this needs to be checked for docker builds
- Buildspec
- Build specifications: Use a buildspec file
- Logs
- CloudWatch logs
- Group name: imaginary
- CloudWatch logs
- Project configuration
- Create project
- Environment variables
- Name:
GIT_BRANCH
- Value:
#{SourceVariables.BranchName}
- Type: Plaintext
- Value:
- Name:
EA_ACCESS_TOKEN
- Value:
<estudy-admin access token from https://admin.estudy.artidis.com/#/pipelines/list>
- Type: Plaintext
- Value:
- Name:
ACR_APP_ID
- Value:
<Azure ACR App ID>
- Type: Plaintext
- Value:
- Name:
ACR_PASSWD
- Value:
<Azure ACR Passwd>
- Type: Plaintext
- Value:
- Name:
- Build type: Single build
- Deploy
- Skip deploy stage
Create the policy BuildPipelineImaginaryCodeStarConnections
in IAM.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "codestar-connections:UseConnection",
"Resource": "arn:aws:codestar-connections:eu-central-1:421016705922:connection/28c20437-6653-4e20-bfdb-33802fe92da8"
}
]
}
You find the Resource
ARN arn:aws:codestar-connections:...
at: Pipelines / imaginary / Source / (i) / ConnectionArn
- Attach policies to the codebuild user
- Build / Build projects / imaginary / Build details / Environment / Click on
Service role
- Attach policies
BuildPipelineImaginaryCodeStarConnections
AmazonEC2ContainerRegistryPowerUser
- Build / Build projects / imaginary / Build details / Environment / Click on
Create a new notification rule under Pipelines / imaginary
- Notification rule settings
- Notification name:
imaginary-pipeline-failed
- Notification name:
- Events that trigger notifications
- Pipeline execution
- Failed
- Pipeline execution
- Targets
- SNS topic
- code-pipeline-events