ops: fix transition path in release-to-production script

533531af24f0 · AtlantisPleb · · parent 195a03e9d3a3

ops: fix transition path in release-to-production script

Deploy story

What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.

pushed
by user · WAL seq 418 · 2026-08-25T20:11:08.834819Z

Changed files

  • modified ops/deploy/release-to-production.sh

Diff

1 file changed, +10 -2

ops/deploy/release-to-production.sh modified +10 -2

@@ -80,11 +80,19 @@ expected_nodes = Enum.sort(["openagents@10.128.0.4", "openagents@10.128.0.110",

80 80
81 81
target =
82 82
  case OpenAgents.Forge.Targets.current("openagents.com") do
83
    %{sha: "$sha", status: status} = t when status in ["promoted", "building", "built", "needs_rolling_replace"] ->
83
    %{sha: "$sha", status: "needs_rolling_replace"} = t ->
84 84
      t
85
    %{sha: "$sha", status: "promoted"} = t ->
86
      {:ok, t2} = OpenAgents.Forge.Targets.advance(t.id, "building")
87
      {:ok, t3} = OpenAgents.Forge.Targets.advance(t2.id, "built")
88
      {:ok, t4} = OpenAgents.Forge.Targets.advance(t3.id, "needs_rolling_replace")
89
      t4
85 90
    _ ->
86 91
      {:ok, t} = OpenAgents.Forge.Targets.promote("openagents.com", "$sha", "operator:14167547", details: %{"source" => "operator_console"})
87
      t
92
      {:ok, t2} = OpenAgents.Forge.Targets.advance(t.id, "building")
93
      {:ok, t3} = OpenAgents.Forge.Targets.advance(t2.id, "built")
94
      {:ok, t4} = OpenAgents.Forge.Targets.advance(t3.id, "needs_rolling_replace")
95
      t4
88 96
  end
89 97
90 98
{:ok, authorized} =

This page updates live while a promote is in flight · changelog