The personal finance app for everyone (by everyone)
Ruby
Restore stable and latest image tags for CalVer releases (#4704)
Sure Admin (bot)630711ebad5b
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.ymlindex df3516625c..c10b2ca493 100644--- a/.github/workflows/publish.yml+++ b/.github/workflows/publish.yml@@ -133,9 +133,8 @@ jobs:if [[ "$release" == true ]]; thenecho "type=raw,value=$version"[[ -z "$compatibility" ]] || echo "type=raw,value=$compatibility"- # Hold stable/latest image promotion until CalVer releases are validated.- # [[ "$stable" != true ]] || echo 'type=raw,value=stable'- # [[ "$alpha" != true ]] || echo 'type=raw,value=latest'+ [[ "$stable" != true ]] || echo 'type=raw,value=stable'+ [[ "$alpha" != true ]] || echo 'type=raw,value=latest'elseecho "type=raw,value=sha-$(git rev-parse HEAD)"if [[ "$GITHUB_EVENT_NAME" == schedule ]]; thendiff --git a/test/workflows/release_workflow_test.rb b/test/workflows/release_workflow_test.rbindex 90556ef4ff..7e1e29d59c 100644--- a/test/workflows/release_workflow_test.rb+++ b/test/workflows/release_workflow_test.rb@@ -21,15 +21,16 @@ class ReleaseWorkflowTest < ActiveSupport::TestCaseendend- test "alpha and stable releases publish explicit versions without floating channels" do+ test "alpha and stable releases publish only their matching floating channel" dowith_repo do |dir|%w[2026.11.2-alpha 2026.11.2].each do |version|success, output = resolve(dir, version)assert success, versionassert_includes output, "release=true"assert_includes output, "type=raw,value=#{version}"- assert_not_includes output, "type=raw,value=stable"- assert_not_includes output, "type=raw,value=latest"+ channel, other_channel = version.end_with?("-alpha") ? %w[latest stable] : %w[stable latest]+ assert_includes output, "type=raw,value=#{channel}"+ assert_not_includes output, "type=raw,value=#{other_channel}"endendend@@ -70,7 +71,7 @@ class ReleaseWorkflowTest < ActiveSupport::TestCasetest "invalid dates and all canonical suffixes other than alpha are rejected" dowith_repo do |dir|- %w[2026.11.02 2026.11.0 2026.2.29 2026.4.31 2026.10.28-hotfix.1 2026.10.28-1 2026.10.30-alpha.2 2026.10.30-alpha.0 2026.10.30-beta 2026.10.30-rc.1].each do |version|+ %w[2026.11.02 2026.11.0 2026.2.29 2026.4.31 2026.10.28-hotfix.1 2026.10.28-1 2026.10.30-alpha.2 2026.10.30-alpha.0 2026.10.30-beta 2026.10.30-rc.1 2026.10.30-daily 2026.10.30-nightly].each do |version|assert_not resolve(dir, version).first, versionendend@@ -99,7 +100,7 @@ class ReleaseWorkflowTest < ActiveSupport::TestCaseassert successassert_not_includes output, "type=raw,value=0.7.7"assert_includes output, "type=raw,value=2027.1.1"- assert_not_includes output, "type=raw,value=stable"+ assert_includes output, "type=raw,value=stable"assert_not_includes output, "type=raw,value=latest"endend@@ -121,6 +122,8 @@ class ReleaseWorkflowTest < ActiveSupport::TestCaseassert_includes output, "type=raw,value=sha-#{selected_sha}"assert_not_includes output, "type=raw,value=sha-#{workflow_sha}"assert_not_includes output, "type=raw,value=#{version}"+ assert_not_includes output, "type=raw,value=stable"+ assert_not_includes output, "type=raw,value=latest"endend[ "main", "refs/heads/main", selected_sha ].each do |selected_ref|