This repository has been archived by the owner on Nov 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdev-resources.yaml
133 lines (126 loc) · 3.58 KB
/
dev-resources.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
AWSTemplateFormatVersion: 2010-09-09
Resources:
GitHubToken:
Type: Custom::SharedSecret
Properties:
ServiceToken:
Fn::ImportValue: BC-CustomResourceProvider
Name: /development/github/token
WheelBuild:
Type: AWS::CodeBuild::Project
Properties:
Name: BCEventsClient-Build
Description: Ships bc-events/master to an internal wheelhouse
Artifacts:
Type: CODEPIPELINE
ServiceRole:
Fn::ImportValue: CodeBuildRole
Environment:
ComputeType: BUILD_GENERAL1_SMALL
Image: aws/codebuild/python:3.6.5
Type: LINUX_CONTAINER
EnvironmentVariables:
- Name: PIP_BUCKET
Type: PLAINTEXT
Value:
Fn::ImportValue: PipBucket
Cache:
Type: S3
Location:
Fn::Sub:
- ${bucketName}/bc-events-build-cache
- bucketName:
Fn::ImportValue: CodeArtifactsBucket
Source:
BuildSpec: buildspec.yaml
Type: CODEPIPELINE
TestBuild:
Type: AWS::CodeBuild::Project
Properties:
Name: BCEventsClient-Test
Description: Runs tests against PRs for bc-events
Artifacts:
Type: NO_ARTIFACTS
BadgeEnabled: true
Triggers:
Webhook: true
ServiceRole:
Fn::ImportValue: CodeBuildRole
Environment:
ComputeType: BUILD_GENERAL1_SMALL
Image: aws/codebuild/python:3.6.5
Type: LINUX_CONTAINER
Cache:
Type: S3
Location:
Fn::Sub:
- ${bucketName}/bc-events-test-cache
- bucketName:
Fn::ImportValue: CodeArtifactsBucket
Source:
BuildSpec: testspec.yaml
Location: https://github.com/IntuitiveWebSolutions/bc-events.git
Type: GITHUB
Auth:
Type: OAUTH
CodePipeline:
Type: AWS::CodePipeline::Pipeline
Properties:
Name: BCEventsClient-Pipeline
ArtifactStore:
Type: S3
Location:
Fn::ImportValue: CodeArtifactsBucket
RestartExecutionOnUpdate: true
RoleArn:
Fn::ImportValue: CodePipelineRole
Stages:
- Name: Source
Actions:
- Name: Source
RunOrder: 1
ActionTypeId:
Category: Source
Owner: ThirdParty
Provider: GitHub
Version: 1
Configuration:
Owner: IntuitiveWebSolutions
Repo: bc-events
Branch: master
OAuthToken:
Fn::GetAtt: [GitHubToken, Value]
OutputArtifacts:
- Name: SourceArtifact
- Name: Test
Actions:
- Name: Run-Tests
RunOrder: 1
InputArtifacts:
- Name: SourceArtifact
ActionTypeId:
Category: Test
Owner: AWS
Provider: CodeBuild
Version: 1
Configuration:
ProjectName:
Ref: TestBuild
OutputArtifacts:
- Name: TestArtifact
- Name: Build
Actions:
- Name: Build-Wheel
RunOrder: 1
InputArtifacts:
- Name: SourceArtifact
ActionTypeId:
Category: Build
Owner: AWS
Provider: CodeBuild
Version: 1
Configuration:
ProjectName:
Ref: WheelBuild
OutputArtifacts:
- Name: BuildArtifact