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
Reserve the latest markers for the highest stable release
rcourtmane240f162e9d0
diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.ymlindex e748636ce0..dd032d5fb0 100644--- a/.github/workflows/create-release.yml+++ b/.github/workflows/create-release.yml@@ -987,9 +987,21 @@ jobs:-X PATCH -F draft=false -F make_latest=falseecho "[OK] Published as prerelease: ${TAG}"else- gh api "repos/${{ github.repository }}/releases/${RELEASE_ID}" \- -X PATCH -F draft=false -F make_latest=true- echo "[OK] Published as latest: ${TAG}"+ # 'latest' belongs to the highest stable semver overall. A+ # maintenance cut of an older line (e.g. v5.1.36 after v6 GA)+ # publishes without stealing the latest marker from the current+ # line.+ HIGHEST_STABLE=$(gh api --paginate "repos/${{ github.repository }}/tags" --jq '.[].name' \+ | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | tail -1)+ if [ "$TAG" = "$HIGHEST_STABLE" ]; then+ gh api "repos/${{ github.repository }}/releases/${RELEASE_ID}" \+ -X PATCH -F draft=false -F make_latest=true+ echo "[OK] Published as latest: ${TAG}"+ else+ gh api "repos/${{ github.repository }}/releases/${RELEASE_ID}" \+ -X PATCH -F draft=false -F make_latest=false+ echo "[OK] Published WITHOUT latest marker: ${TAG} (highest stable is ${HIGHEST_STABLE})"+ fifi- name: Skip publish (draft only)diff --git a/.github/workflows/promote-floating-tags.yml b/.github/workflows/promote-floating-tags.ymlindex b9e02c437f..e28e5a45b2 100644--- a/.github/workflows/promote-floating-tags.yml+++ b/.github/workflows/promote-floating-tags.yml@@ -40,6 +40,11 @@ on:required: truetype: booleandefault: false+ force_latest:+ description: 'Move :latest to this tag even if it is not the highest stable (rollback)'+ required: false+ type: boolean+ default: falsepermissions:contents: read@@ -155,6 +160,7 @@ jobs:TAG: ${{ steps.extract.outputs.tag }}PRERELEASE: ${{ steps.extract.outputs.prerelease }}OWNER: ${{ github.repository_owner }}+ FORCE_LATEST: ${{ github.event_name == 'workflow_dispatch' && inputs.force_latest || false }}run: |set -euo pipefailVERSION="${TAG#v}"@@ -172,14 +178,27 @@ jobs:-t ghcr.io/${OWNER}/pulse:rc \ghcr.io/${OWNER}/pulse:${TAG}else- echo "Promoting stable tags for ${TAG}"+ # :latest belongs to the highest stable semver overall. A+ # maintenance cut of an older line (e.g. v5.1.36 after v6 GA, or a+ # 6.0.x patch after 6.1 ships) must only move its own :MAJOR and+ # :MAJOR.MINOR tags.+ HIGHEST_STABLE=$(git tag -l 'v*' | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | tail -1)+ LATEST_ARGS=""+ LATEST_ARGS_GHCR=""+ if [ "$TAG" = "$HIGHEST_STABLE" ] || [ "${FORCE_LATEST}" = "true" ]; then+ LATEST_ARGS="-t rcourtman/pulse:latest"+ LATEST_ARGS_GHCR="-t ghcr.io/${OWNER}/pulse:latest"+ echo "Promoting stable tags for ${TAG} (including :latest)"+ else+ echo "Promoting stable tags for ${TAG} WITHOUT :latest (highest stable is ${HIGHEST_STABLE})"+ fidocker buildx imagetools create \- -t rcourtman/pulse:latest \+ ${LATEST_ARGS} \-t rcourtman/pulse:${MAJOR_MINOR} \-t rcourtman/pulse:${MAJOR} \rcourtman/pulse:${TAG}docker buildx imagetools create \- -t ghcr.io/${OWNER}/pulse:latest \+ ${LATEST_ARGS_GHCR} \-t ghcr.io/${OWNER}/pulse:${MAJOR_MINOR} \-t ghcr.io/${OWNER}/pulse:${MAJOR} \ghcr.io/${OWNER}/pulse:${TAG}