Skip to content

feat: Redeploy command (off-ticket) - #1245

Open
a-gleeson wants to merge 19 commits into
mainfrom
feat-redeploy-command
Open

feat: Redeploy command (off-ticket)#1245
a-gleeson wants to merge 19 commits into
mainfrom
feat-redeploy-command

Conversation

@a-gleeson

Copy link
Copy Markdown
Contributor

Why:

  • we are upgrading away from aws copilot, we need to redploy services for a lot of services/codebases this is a lot of deployments to retrieve the deployed commit and trigger the pipeline. Making it at risk of human error.

What:

  • redploy command will re-trigger manual release pipeline for an application & environment

  • provide codebase (from anywhere)

  • or pick up all codebases (in deploy)

  • get all all deployed services, with deployed tag (commit)

  • raise error on commit mismatches within codebase

  • option to wait on results or return build urls

  • refactor

    • Use ports to interface with providers (adopting the hexagonal structure)
    • Create config, file, pipeline & deployed Port
    • All business logic is within domain while dependency logic is kept within providers

Checklist:

Title:

Description:

  • Link to ticket included (unless it's a quick out of ticket thing)
  • Includes tests (or an explanation for why it doesn't)
  • If the work includes user interface changes, before and after screenshots included in description
  • Includes any applicable changes to the documentation in this code base
  • Includes link(s) to any applicable changes to the documentation in the DBT Platform Documentation (can be to a pull request)

Tasks:

Reviewer Checklist

  • I have reviewed the PR and ensured no secret values are present

@a-gleeson
a-gleeson requested a review from a team as a code owner January 29, 2026 08:54
@a-gleeson a-gleeson changed the title feat: Redeploy command (off-ticket) feat: Redeploy command (off-ticket) Feb 10, 2026
a-gleeson and others added 5 commits February 10, 2026 16:25
Signed-off-by: DBT pre-commit check
Signed-off-by: DBT pre-commit check
Signed-off-by: DBT pre-commit check
@github-actions

Copy link
Copy Markdown
Contributor

Your PR has commits that are missing the Signed-off-by trailer. This is likely due to the pre-commit hook not being configured on your local machine. The usual fix for this issue is to run pre-commit install --install-hooks --overwrite -t commit-msg -t pre-commit, however for more detailed help in setting up the pre-commit hooks, follow the instructions at https://github.com/uktrade/github-standards/blob/main/README.md#usage

@click.option(
"--wait", type=bool, default=True, help="Wait on pipelines completing before returning results"
)
def redeploy(app: str, env: str, codebases: List[str], wait: bool):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

FYI The builtin list should work here. You also do this in several other places throughout this PR.

Suggested change
def redeploy(app: str, env: str, codebases: List[str], wait: bool):
def redeploy(app: str, env: str, codebases: list[str], wait: bool):

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I can be a little inconsistent with this

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The list functions break trying to type with list so a PR should be made renaming that first

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or OpenSSF Scorecard issues found.

Scanned Files

None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants