forked from mozilla-iam/auth0-custom-lock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodebuild-job.yml
54 lines (54 loc) · 1.63 KB
/
codebuild-job.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
AWSTemplateFormatVersion: "2010-09-09"
Description: CodeBuild job for automated testing.
Parameters:
CDNS3Bucket:
Type: String
Description: The name of the s3 bucket that you want the lock deployed to.
CloudFrontDistributionID:
Type: String
Description: The ID of the cloudfront distribution for performing cache invalidations.
NLXEnv:
Type: String
Description: What environment are we building for.
ServiceRoleArn:
Type: String
Description: The Arn of your codebuild service role.
Resources:
ArtifactStoreBucket:
Type: AWS::S3::Bucket
Properties:
VersioningConfiguration:
Status: Enabled
AccessControl: BucketOwnerFullControl
CodeBuildProject:
Type: AWS::CodeBuild::Project
Properties:
Artifacts:
Type: no_artifacts
Environment:
ComputeType: BUILD_GENERAL1_SMALL
Image: mozillaiam/auth0-custom-lock-builder
Type: LINUX_CONTAINER
EnvironmentVariables:
- Name: CDN_BUCKET_NAME
Value: !Ref CDNS3Bucket
- Name: CLOUDFRONT_DIST_ID
Value: !Ref CloudFrontDistributionID
- Name: NODE_ENV
Value: !Ref NLXEnv
Name: !Sub ${AWS::StackName}CodeBuildProject
ServiceRole: !Ref ServiceRoleArn
Source:
Type: GITHUB
Location: "https://github.com/mozilla-iam/auth0-custom-lock"
Outputs:
CodeBuildURL:
Description: CodeBuild URL
Value:
Fn::Join:
- ""
- - "https://console.aws.amazon.com/codebuild/home?region="
- Ref: AWS::Region
- "#/projects/"
- Ref: CodeBuildProject
- "/view"