Sha256: b70f11804c9d1608160c3beddeeb983b53fd591f60a31db0b1a5fa73f8ea3fa2

Contents?: true

Size: 1.31 KB

Versions: 7

Compression:

Stored size: 1.31 KB

Contents

# For methods, refer to the properties of the CloudFormation CodeBuild::Project https://amzn.to/2UTeNlr
# For convenience methods, refer to the source https://github.com/tongueroo/cody/blob/master/lib/cody/dsl/project.rb

# name("example-project-name") # recommend leaving unset and codebuild will use a conventional name
github_url("<%= project_github_url %>")
linux_image("<%= lookup_managed_image(/amazonlinux2-x86_64-standard/) %>")
environment_variables(
  JETS_ENV: "test",
  # API_KEY: "ssm:/codebuild/demo/api_key" # Example of ssm parameter
)

# Some useful helpers:
# puts "project_name #{project_name}" # IE: demo-web
# puts "full_project_name #{full_project_name}" # demo-web-development

# Uncomment to enable github webhook, the GitHub oauth token needs admin:repo_hook permissions
# Refer to https://cody.run/docs/github_oauth/
# triggers(webhook: true)
# Another example:
# Docs: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html
# {type: "EVENT", pattern: "PUSH"} is required
# Also, note the extra brackets: [[]] is actually the proper format. I know weird.
# triggers(
#   webhook: true,
#   filter_groups: [[{type: "HEAD_REF", pattern: "my-branch"}, {type: "EVENT", pattern: "PUSH"}]]
# )

# Shorthand to enable all local cache modes
# local_cache(true)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cody-0.9.8 lib/template/project/project.rb.tt
cody-0.9.7 lib/template/project/project.rb.tt
cody-0.9.6 lib/template/project/project.rb.tt
cody-0.9.5 lib/template/project/project.rb.tt
cody-0.9.4 lib/template/project/project.rb.tt
cody-0.9.3 lib/template/project/project.rb.tt
cody-0.9.2 lib/template/project/project.rb.tt