Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Drive promote-floating-tags via workflow_call from create-release
rcourtman3566a4d61d4d
diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.ymlindex 36e4063ee5..0f6df7eb53 100644--- a/.github/workflows/create-release.yml+++ b/.github/workflows/create-release.yml@@ -1112,3 +1112,25 @@ jobs:with:chart_version: ${{ needs.prepare.outputs.version }}app_version: ${{ needs.prepare.outputs.version }}++ # Defensive backup to promote-floating-tags.yml's workflow_run chain off+ # publish-docker.yml. The chain works when publish-docker succeeds, but a+ # publish-docker failure (rc.3 → rc.5 all failed at the now-removed+ # pulse-agent push) silently left latest/major/minor tags unpromoted —+ # customers pulling rcourtman/pulse:latest stayed on whatever the previous+ # successful release tagged. Calling promote-floating-tags as workflow_call+ # after validate_release_assets succeeds (which itself waits for the docker+ # image to be pullable) guarantees the floating tags advance.+ promote_floating_tags:+ needs:+ - prepare+ - validate_release_assets+ if: ${{ always() && needs.prepare.result == 'success' && needs.validate_release_assets.result == 'success' && needs.prepare.outputs.historical_asset_backfill_only != 'true' }}+ permissions:+ contents: read+ packages: write+ uses: ./.github/workflows/promote-floating-tags.yml+ secrets: inherit+ with:+ tag: ${{ needs.prepare.outputs.tag }}+ prerelease: ${{ needs.prepare.outputs.is_prerelease == 'true' }}diff --git a/.github/workflows/promote-floating-tags.yml b/.github/workflows/promote-floating-tags.ymlindex 4113c0d665..40fd2928c2 100644--- a/.github/workflows/promote-floating-tags.yml+++ b/.github/workflows/promote-floating-tags.yml@@ -1,11 +1,31 @@name: Promote Floating Tagsrun-name: Promote Floating Tags ${{ inputs.tag }}-# Triggered automatically when publish-docker.yml completes, or manually+# Triggers:+# - workflow_run: chains off publish-docker.yml completion. Historically the+# primary path, but the chain only fires when publish-docker succeeds — and+# when publish-docker fails (rc.3 → rc.5 all failed at the now-removed+# pulse-agent push step), the floating tags don't promote and customers+# pulling rcourtman/pulse:latest are stuck on whatever the previous tag was.+# - workflow_call: called explicitly from create-release.yml after+# validate_release_assets succeeds. Defensive backup so a workflow_run+# failure doesn't silently leave latest/major/minor tags unpromoted.+# - workflow_dispatch: manual backfill path.+on:workflow_run:workflows: ["Publish Docker Images"]types: [completed]+ workflow_call:+ inputs:+ tag:+ description: "Release tag (e.g., v6.0.0). Required for workflow_call."+ required: true+ type: string+ prerelease:+ description: "Is this a prerelease?"+ required: true+ type: booleanworkflow_dispatch:inputs:tag:@@ -24,8 +44,9 @@ permissions:jobs:promote-images:runs-on: ubuntu-24.04- # Only run if workflow_dispatch OR if workflow_run completed successfully- if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}+ # workflow_dispatch and workflow_call always run; workflow_run only when+ # the triggering Publish Docker Images run completed successfully.+ if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event.workflow_run.conclusion == 'success' }}permissions:contents: readpackages: write@@ -35,33 +56,37 @@ jobs:id: extractenv:GH_TOKEN: ${{ github.token }}+ INPUT_TAG: ${{ inputs.tag }}+ INPUT_PRERELEASE: ${{ inputs.prerelease }}run: |- if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then- # Manual dispatch - use inputs directly- TAG="${{ inputs.tag }}"- PRERELEASE="${{ inputs.prerelease }}"+ # inputs.tag is set by both workflow_dispatch and workflow_call. Fall+ # back to the workflow_run derivation only when running as a chain+ # downstream of publish-docker.yml.+ if [ -n "${INPUT_TAG}" ]; then+ TAG="${INPUT_TAG}"+ PRERELEASE="${INPUT_PRERELEASE}"else# workflow_run trigger - extract from the triggering workflow's inputs# The publish-docker workflow was triggered with a tag inputRUN_ID="${{ github.event.workflow_run.id }}"echo "Extracting inputs from workflow run ${RUN_ID}..."-+# Get the workflow run details to extract the tagWORKFLOW_DATA=$(gh api repos/${{ github.repository }}/actions/runs/${RUN_ID})TAG=$(echo "$WORKFLOW_DATA" | jq -r '.head_branch // ""')-+# If head_branch is main, we need to get it from the run's inputs# The inputs are stored in the run's display_title or we parse from artifactsif [ "$TAG" = "main" ] || [ -z "$TAG" ]; then# Try to get from run name which typically includes the tagTAG=$(echo "$WORKFLOW_DATA" | jq -r '.display_title' | grep -oP 'v\d+\.\d+\.\d+(-[a-zA-Z]+\.\d+)?' || echo "")fi-+if [ -z "$TAG" ]; thenecho "::error::Could not extract tag from workflow_run"exit 1fi-+# Detect prerelease from tagif [[ "$TAG" =~ -rc\.[0-9]+$ ]] || [[ "$TAG" =~ -alpha\.[0-9]+$ ]] || [[ "$TAG" =~ -beta\.[0-9]+$ ]]; thenPRERELEASE="true"@@ -69,7 +94,7 @@ jobs:PRERELEASE="false"fifi-+echo "tag=${TAG}" >> $GITHUB_OUTPUTecho "prerelease=${PRERELEASE}" >> $GITHUB_OUTPUTecho "Promoting floating tags for ${TAG} (prerelease: ${PRERELEASE})"diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.mdindex 81aaa0165a..0ec549a5f7 100644--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md@@ -329,6 +329,16 @@ server-side update execution surfaces.`release` and `workflow_dispatch` triggers, and its chart-versionresolver must prefer inputs over the release-event tag when inputs arepresent so all three entry paths converge on the same identity.+ `create-release.yml` must apply the same explicit `workflow_call` to+ `promote-floating-tags.yml`. Its legacy `workflow_run` chain off+ `publish-docker.yml` silently stops promoting `latest` / major / minor+ tags whenever `publish-docker.yml` fails (rc.3 → rc.5 all failed at the+ removed pulse-agent push step), leaving customers on stale floating+ tags with no warning. `promote-floating-tags.yml` must expose+ `workflow_call` inputs (`tag`, `prerelease`) and its tag resolver must+ prefer those over the workflow_run-derived tag, and the create-release+ wiring must gate on `validate_release_assets` succeeding so the docker+ image is guaranteed pullable before promotion.Generated chart docs are part of the packaged release artifact, not adisposable byproduct: when the stable candidate version changes, the checkedin `deploy/helm/pulse/README.md` output must be regenerated from the samediff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.goindex 9a51a02cfc..40f4b158d4 100644--- a/scripts/installtests/build_release_assets_test.go+++ b/scripts/installtests/build_release_assets_test.go@@ -183,6 +183,16 @@ func TestCreateReleaseUploadsPowerShellInstaller(t *testing.T) {`publish_helm_chart:`,`chart_version: ${{ needs.prepare.outputs.version }}`,`app_version: ${{ needs.prepare.outputs.version }}`,+ // promote-floating-tags chains off publish-docker via workflow_run,+ // but when publish-docker fails (rc.3 → rc.5 all did) the chain+ // silently doesn't fire and latest/major/minor docker tags stay+ // stale. Defensive workflow_call backup, gated on+ // validate_release_assets succeeding (which waits for the image to+ // be pullable, so the tag points at a real manifest).+ `uses: ./.github/workflows/promote-floating-tags.yml`,+ `promote_floating_tags:`,+ `tag: ${{ needs.prepare.outputs.tag }}`,+ `prerelease: ${{ needs.prepare.outputs.is_prerelease == 'true' }}`,}for _, needle := range required {if !strings.Contains(workflow, needle) {@@ -950,6 +960,40 @@ func TestInstallShSmokeWorkflowPresent(t *testing.T) {}}+func TestPromoteFloatingTagsReachableViaWorkflowCall(t *testing.T) {+ // promote-floating-tags.yml's `workflow_run` chain off publish-docker+ // silently stops working when publish-docker fails (rc.3 → rc.5 all+ // failed at the now-removed pulse-agent push step). Without the+ // floating tags promoted, customers pulling rcourtman/pulse:latest+ // stay on the previous release tag. Adding workflow_call so+ // create-release.yml can drive promotion explicitly after+ // validate_release_assets succeeds — same defensive shape as+ // publish-helm-chart and install-sh-smoke.+ workflowBytes, err := os.ReadFile(repoFile(".github", "workflows", "promote-floating-tags.yml"))+ if err != nil {+ t.Fatalf("read promote-floating-tags.yml: %v", err)+ }+ workflow := string(workflowBytes)+ required := []string{+ `workflow_call:`,+ `tag:`,+ `description: "Release tag (e.g., v6.0.0). Required for workflow_call."`,+ `prerelease:`,+ `type: boolean`,+ // Job condition must accept workflow_call alongside workflow_dispatch.+ `github.event_name == 'workflow_call'`,+ // Tag resolver must prefer inputs over the workflow_run derivation+ // when running through workflow_call / workflow_dispatch.+ `if [ -n "${INPUT_TAG}" ]; then`,+ `TAG="${INPUT_TAG}"`,+ }+ for _, needle := range required {+ if !strings.Contains(workflow, needle) {+ t.Fatalf("promote-floating-tags.yml missing required workflow_call wiring: %s", needle)+ }+ }+}+func TestPublishHelmChartReachableViaWorkflowCall(t *testing.T) {// v6 rc.1 → rc.5 published successfully but never published a Helm// chart because `release: published` does not fire when a release is