Skip to main content
Version: 0.0.25

Method: ecr_build

Method to build an image associated to an especific ECR repository

Returns following columns:

  • imageId: AWS generated ID for the generated image

Accepts the following parameters:

  • githubRepoUrl: URL where to get the source code for the build
  • ecrRepositoryId: ID fot the repository where to push the image
  • buildPath: Internal path on the Github repo where to read the buildspec
  • githubRef: Git reference for the source code repo
  • githubPersonalAccessToken: Personal Access Token used to access private repositories

Example

SELECT ecr_build('https://github.com/iasql/docker-helloworld',
(SELECT id FROM repository WHERE repository_name = '${repositoryName}')::varchar(255), '.', 'main', '<personal_access_token>');

See