This repository has been archived by the owner on Apr 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
backend.yml
65 lines (63 loc) · 1.73 KB
/
backend.yml
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
AWSTemplateFormatVersion: "2010-09-09"
Parameters:
OAuth:
Description: OAuth Token for Github Access
Default: "****"
Type: String
NoEcho: true
Resources:
BackendBuild:
Type: "AWS::CodeBuild::Project"
Properties:
Name: offcourse-backend
Artifacts:
Type: CODEPIPELINE
TimeoutInMinutes: 60
Environment:
ComputeType: BUILD_GENERAL1_SMALL
Image: 774182433398.dkr.ecr.us-east-1.amazonaws.com/offcourse-build:latest
Type: LINUX_CONTAINER
EnvironmentVariables: []
ServiceRole: arn:aws:iam::774182433398:role/service-role/codebuild-offcourse-backend-service-role
Source:
Type: CODEPIPELINE
Pipeline:
Type: "AWS::CodePipeline::Pipeline"
Properties:
Name: offcourse-backend
RoleArn: !ImportValue CodePipelineRoleArn
Stages:
- Name: Source
Actions:
- Name: Source
ActionTypeId:
Category: Source
Owner: ThirdParty
Version: '1'
Provider: GitHub
OutputArtifacts:
- Name: raw
Configuration:
Owner: OffCourse
Repo: offcourse-backend
Branch: production
OAuthToken: !Ref OAuth
RunOrder: 1
- Name: Dev
Actions:
- InputArtifacts:
- Name: raw
Name: offcourse-backend-dev
ActionTypeId:
Category: Build
Owner: AWS
Version: '1'
Provider: CodeBuild
Configuration:
ProjectName: !Ref BackendBuild
OutputArtifacts:
- Name: build
RunOrder: 1
ArtifactStore:
Type: S3
Location: codepipeline-us-east-1-814057763522