Skip to content

Instantly share code, notes, and snippets.

@josjaf
Created August 15, 2019 21:58
Show Gist options
  • Save josjaf/f3e056ca9433fa4194c1f35cb71f35cd to your computer and use it in GitHub Desktop.
Save josjaf/f3e056ca9433fa4194c1f35cb71f35cd to your computer and use it in GitHub Desktop.
codebuild_docker_build_aardvark = aws_codebuild. \
PipelineProject(self, "CodebuildDockerBuildAardvark",
project_name=f"{shared_params['namespace']}-Docker-Build-Aardvark",
build_spec=aws_codebuild.BuildSpec.from_source_filename(
filename='pipeline_delivery/aardvark_buildspec.yml'),
environment=aws_codebuild.BuildEnvironment(
privileged=True,
# build_image='LinuxBuildImage.STANDARD_1_0',
),
environment_variables={
'ecr': aws_codebuild.BuildEnvironmentVariable(
value=ecr.repository_uri),
'tag': aws_codebuild.BuildEnvironmentVariable(
value='aardvark')
},
description='Pipeline for CodeBuild',
timeout=core.Duration.minutes(60),
role=codebuild_role,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment