Skip to content

Commit

Permalink
Fix mgmt repo inference
Browse files Browse the repository at this point in the history
It wasn't being properly used when creating the pr.  Also bumps cli
  • Loading branch information
michaeljguarino committed Dec 30, 2024
1 parent c5ec408 commit df1f822
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ ARG TARGETARCH=amd64
# ENV TERRAFORM_VERSION=v1.9.8

# renovate: datasource=github-releases depName=pluralsh/plural-cli
ENV CLI_VERSION=v0.10.3
ENV CLI_VERSION=v0.11.1

# renovate: datasource=github-tags depName=kubernetes/kubernetes
# ENV KUBECTL_VERSION=v1.31.3
Expand Down
3 changes: 2 additions & 1 deletion lib/console/deployments/pr/dispatcher.ex
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ defmodule Console.Deployments.Pr.Dispatcher do
@spec create(PrAutomation.t, binary, map) :: pr_resp
def create(%PrAutomation{} = pr, branch, ctx) when is_binary(branch) do
%PrAutomation{connection: conn} = pr = Repo.preload(pr, [:connection, :repository])
pr = put_in(pr.identifier, resolve_repo(pr.identifier))
impl = dispatcher(conn)
with {:ok, conn} <- setup(%{conn | branch: pr.branch}, resolve_repo(pr.identifier), branch),
with {:ok, conn} <- setup(%{conn | branch: pr.branch}, pr.identifier, branch),
{:ok, f} <- Config.config(pr, branch, ctx),
{:ok, ext} <- external_git(pr),
{:ok, _} <- Plural.template(f, conn.dir, ext),
Expand Down

0 comments on commit df1f822

Please sign in to comment.