Skip to content

Conversation

@tpaulshippy
Copy link
Contributor

Link to Jira ticket

Purpose

We need to build an image that is not named the same as the repo it is in for Kong.

Approach

Allow passing in ECR repository name.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds flexibility to the Docker build workflow by allowing custom ECR repository names and Docker build configurations. The primary purpose is to support building images with names different from their repository name, specifically for Kong.

Key changes:

  • Added four new optional workflow inputs: ecr_repository, dockerfile, context, and run_tests
  • Modified ECR repository creation and Docker build steps to use the custom ECR repository name when provided
  • Made RSpec testing optional through a conditional job execution

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

required: false
default: false
type: boolean
ecr_repository:
Copy link

Copilot AI Nov 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The naming convention is inconsistent with other parameters in this workflow. All other multi-word parameters use kebab-case (e.g., bundle-no-assets, ruby-version, run-parallel-tests, run-job-per-folder), but this parameter uses snake_case. Consider renaming to ecr-repository for consistency.

Suggested change
ecr_repository:
ecr-repository:

Copilot uses AI. Check for mistakes.
required: false
type: string
default: "."
run_tests:
Copy link

Copilot AI Nov 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The naming convention is inconsistent with other parameters in this workflow. All other multi-word parameters use kebab-case (e.g., bundle-no-assets, ruby-version, run-parallel-tests, run-job-per-folder), but this parameter uses snake_case. Consider renaming to run-tests for consistency.

Suggested change
run_tests:
run-tests:

Copilot uses AI. Check for mistakes.
@tpaulshippy tpaulshippy merged commit 51a2519 into main Nov 19, 2025
2 checks passed
@tpaulshippy tpaulshippy deleted the STK-14383 branch November 19, 2025 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants