From 4838b22a02a861ee321a9d79e31e1852efb1944d Mon Sep 17 00:00:00 2001 From: "gitea-actions[bot]" Date: Sun, 8 Feb 2026 03:15:02 +0000 Subject: [PATCH 1/8] ci: update artifact hub metadata for v0.1.6 --- artifacthub-pkg.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artifacthub-pkg.yml b/artifacthub-pkg.yml index 6372ed3..ce981a4 100644 --- a/artifacthub-pkg.yml +++ b/artifacthub-pkg.yml @@ -30,5 +30,5 @@ maintainers: annotations: headlamp/plugin/archive-url: "https://github.com/cpfarhood/headlamp-polaris-plugin/releases/download/v0.1.6/headlamp-polaris-plugin-0.1.6.tar.gz" headlamp/plugin/version-compat: ">=0.26" - headlamp/plugin/archive-checksum: sha256:7e56af04bcd9121e09eab092608c774b3aa2137d1e0338f1bb06149dd3f5c3ce + headlamp/plugin/archive-checksum: sha256:2d20571107863b8c5197f207e6bea6dcad6ae5401fa701f1415405cfa63ab58b headlamp/plugin/distro-compat: in-cluster From e54630410e46b11989e4f66fbbfbd12607451a08 Mon Sep 17 00:00:00 2001 From: "gitea-actions[bot]" Date: Mon, 9 Feb 2026 14:18:16 +0000 Subject: [PATCH 2/8] ci: update artifact hub metadata for v0.2.0-dev.1 --- artifacthub-pkg.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/artifacthub-pkg.yml b/artifacthub-pkg.yml index ce981a4..3ff9c82 100644 --- a/artifacthub-pkg.yml +++ b/artifacthub-pkg.yml @@ -1,4 +1,4 @@ -version: 0.1.6 +version: 0.2.0-dev.1 name: headlamp-polaris-plugin displayName: Polaris createdAt: "2026-02-05T19:00:00Z" @@ -28,7 +28,7 @@ maintainers: - name: cpfarhood email: "chris@farhood.org" annotations: - headlamp/plugin/archive-url: "https://github.com/cpfarhood/headlamp-polaris-plugin/releases/download/v0.1.6/headlamp-polaris-plugin-0.1.6.tar.gz" + headlamp/plugin/archive-url: "https://github.com/cpfarhood/headlamp-polaris-plugin/releases/download/v0.2.0-dev.1/headlamp-polaris-plugin-0.2.0-dev.1.tar.gz" headlamp/plugin/version-compat: ">=0.26" - headlamp/plugin/archive-checksum: sha256:2d20571107863b8c5197f207e6bea6dcad6ae5401fa701f1415405cfa63ab58b + headlamp/plugin/archive-checksum: sha256:e976bfb0459c8347a62f0ee1f6e11c1cf3dd8598120612f57fc38df09137abe1 headlamp/plugin/distro-compat: in-cluster From 975a31d1f38a9730edda12b38746728a5194d4d9 Mon Sep 17 00:00:00 2001 From: "gitea-actions[bot]" Date: Mon, 9 Feb 2026 14:26:59 +0000 Subject: [PATCH 3/8] ci: update artifact hub metadata for v0.2.0-dev.1 --- artifacthub-pkg.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artifacthub-pkg.yml b/artifacthub-pkg.yml index 3ff9c82..b67696c 100644 --- a/artifacthub-pkg.yml +++ b/artifacthub-pkg.yml @@ -30,5 +30,5 @@ maintainers: annotations: headlamp/plugin/archive-url: "https://github.com/cpfarhood/headlamp-polaris-plugin/releases/download/v0.2.0-dev.1/headlamp-polaris-plugin-0.2.0-dev.1.tar.gz" headlamp/plugin/version-compat: ">=0.26" - headlamp/plugin/archive-checksum: sha256:e976bfb0459c8347a62f0ee1f6e11c1cf3dd8598120612f57fc38df09137abe1 + headlamp/plugin/archive-checksum: sha256:ac4ac43b76806deb0322275e5f35742b15b747f432ab6929970b7c54d170c305 headlamp/plugin/distro-compat: in-cluster From 9fdb7c04cd0a17d4deae3747bc6d0d52e660ba58 Mon Sep 17 00:00:00 2001 From: "gitea-actions[bot]" Date: Mon, 9 Feb 2026 14:34:11 +0000 Subject: [PATCH 4/8] ci: update artifact hub metadata for v0.2.0-dev.1 --- artifacthub-pkg.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artifacthub-pkg.yml b/artifacthub-pkg.yml index b67696c..6aa2837 100644 --- a/artifacthub-pkg.yml +++ b/artifacthub-pkg.yml @@ -30,5 +30,5 @@ maintainers: annotations: headlamp/plugin/archive-url: "https://github.com/cpfarhood/headlamp-polaris-plugin/releases/download/v0.2.0-dev.1/headlamp-polaris-plugin-0.2.0-dev.1.tar.gz" headlamp/plugin/version-compat: ">=0.26" - headlamp/plugin/archive-checksum: sha256:ac4ac43b76806deb0322275e5f35742b15b747f432ab6929970b7c54d170c305 + headlamp/plugin/archive-checksum: sha256:8582a2e8d316f4e60a88e81de2fe01659ae97b7f36f669f929dd8692848f753e headlamp/plugin/distro-compat: in-cluster From 99bac773cc6c5ad16ff6b48a786078db171bea87 Mon Sep 17 00:00:00 2001 From: "gitea-actions[bot]" Date: Mon, 9 Feb 2026 15:26:20 +0000 Subject: [PATCH 5/8] ci: update artifact hub metadata for v0.2.0-dev.1 --- artifacthub-pkg.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artifacthub-pkg.yml b/artifacthub-pkg.yml index 6aa2837..013f1ab 100644 --- a/artifacthub-pkg.yml +++ b/artifacthub-pkg.yml @@ -30,5 +30,5 @@ maintainers: annotations: headlamp/plugin/archive-url: "https://github.com/cpfarhood/headlamp-polaris-plugin/releases/download/v0.2.0-dev.1/headlamp-polaris-plugin-0.2.0-dev.1.tar.gz" headlamp/plugin/version-compat: ">=0.26" - headlamp/plugin/archive-checksum: sha256:8582a2e8d316f4e60a88e81de2fe01659ae97b7f36f669f929dd8692848f753e + headlamp/plugin/archive-checksum: sha256:8305fb578f74d4e0935044cd8a94c5df253f71c3a49d98118c2fc1c89b7668af headlamp/plugin/distro-compat: in-cluster From 1273f94ae5d2fc3c50aa5bc6bf6e1796f7424ad2 Mon Sep 17 00:00:00 2001 From: "gitea-actions[bot]" Date: Mon, 9 Feb 2026 16:03:25 +0000 Subject: [PATCH 6/8] ci: update artifact hub metadata for v0.2.0-dev.2 --- artifacthub-pkg.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/artifacthub-pkg.yml b/artifacthub-pkg.yml index 013f1ab..15cbe6a 100644 --- a/artifacthub-pkg.yml +++ b/artifacthub-pkg.yml @@ -1,4 +1,4 @@ -version: 0.2.0-dev.1 +version: 0.2.0-dev.2 name: headlamp-polaris-plugin displayName: Polaris createdAt: "2026-02-05T19:00:00Z" @@ -28,7 +28,7 @@ maintainers: - name: cpfarhood email: "chris@farhood.org" annotations: - headlamp/plugin/archive-url: "https://github.com/cpfarhood/headlamp-polaris-plugin/releases/download/v0.2.0-dev.1/headlamp-polaris-plugin-0.2.0-dev.1.tar.gz" + headlamp/plugin/archive-url: "https://github.com/cpfarhood/headlamp-polaris-plugin/releases/download/v0.2.0-dev.2/headlamp-polaris-plugin-0.2.0-dev.2.tar.gz" headlamp/plugin/version-compat: ">=0.26" - headlamp/plugin/archive-checksum: sha256:8305fb578f74d4e0935044cd8a94c5df253f71c3a49d98118c2fc1c89b7668af + headlamp/plugin/archive-checksum: sha256:ffd430bfc5262fb592ecd8eb0f0d5d04e04845468737c5e4704dfe7cc7522963 headlamp/plugin/distro-compat: in-cluster From 66903ca5e539463e2106f0a1cc2dc8d4b12875d4 Mon Sep 17 00:00:00 2001 From: "gitea-actions[bot]" Date: Mon, 9 Feb 2026 16:12:41 +0000 Subject: [PATCH 7/8] ci: update artifact hub metadata for v0.2.0-dev.3 --- artifacthub-pkg.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/artifacthub-pkg.yml b/artifacthub-pkg.yml index 15cbe6a..3321fb5 100644 --- a/artifacthub-pkg.yml +++ b/artifacthub-pkg.yml @@ -1,4 +1,4 @@ -version: 0.2.0-dev.2 +version: 0.2.0-dev.3 name: headlamp-polaris-plugin displayName: Polaris createdAt: "2026-02-05T19:00:00Z" @@ -28,7 +28,7 @@ maintainers: - name: cpfarhood email: "chris@farhood.org" annotations: - headlamp/plugin/archive-url: "https://github.com/cpfarhood/headlamp-polaris-plugin/releases/download/v0.2.0-dev.2/headlamp-polaris-plugin-0.2.0-dev.2.tar.gz" + headlamp/plugin/archive-url: "https://github.com/cpfarhood/headlamp-polaris-plugin/releases/download/v0.2.0-dev.3/headlamp-polaris-plugin-0.2.0-dev.3.tar.gz" headlamp/plugin/version-compat: ">=0.26" - headlamp/plugin/archive-checksum: sha256:ffd430bfc5262fb592ecd8eb0f0d5d04e04845468737c5e4704dfe7cc7522963 + headlamp/plugin/archive-checksum: sha256:6025df1457916fa7a82738c0e36a7fe44094bd7a1a5ef8d3126265be07b51b62 headlamp/plugin/distro-compat: in-cluster From 14e323200c242edd932f05e5c94f039f8e0aa2a1 Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Mon, 9 Feb 2026 11:55:14 -0500 Subject: [PATCH 8/8] fix: use dynamic repo URLs in metadata update step The metadata update step was hardcoded to push to the stable repo, causing dev releases to pollute the stable repo's main branch. Changes: - Use ${GITHUB_REPO} in archive-url instead of hardcoded stable repo - Use ${GITHUB_REPO} in git remote instead of hardcoded stable repo - Determine GITEA_BRANCH dynamically (dev/namespace-drawer for dev, main for stable) - Push the correct Gitea branch to GitHub main branch - Use temp branch to avoid conflicts Now dev releases only touch the dev repo, and stable releases only touch the stable repo. --- .gitea/workflows/release.yaml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index ca7f00d..b153b98 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -163,15 +163,21 @@ jobs: VERSION=${GITHUB_REF_NAME#v} git config user.name "gitea-actions[bot]" git config user.email "gitea-actions[bot]@git.farh.net" - git fetch origin main - git checkout origin/main -B main + # Determine which Gitea branch to update based on version suffix + if [[ "$VERSION" == *"-dev."* ]]; then + GITEA_BRANCH="dev/namespace-drawer" + else + GITEA_BRANCH="main" + fi + git fetch origin ${GITEA_BRANCH} + git checkout origin/${GITEA_BRANCH} -B temp-update sed -i "s|headlamp/plugin/archive-checksum:.*|headlamp/plugin/archive-checksum: sha256:${CHECKSUM}|" artifacthub-pkg.yml - sed -i "s|headlamp/plugin/archive-url:.*|headlamp/plugin/archive-url: \"https://github.com/cpfarhood/headlamp-polaris-plugin/releases/download/${GITHUB_REF_NAME}/headlamp-polaris-plugin-${VERSION}.tar.gz\"|" artifacthub-pkg.yml + sed -i "s|headlamp/plugin/archive-url:.*|headlamp/plugin/archive-url: \"https://github.com/${GITHUB_REPO}/releases/download/${GITHUB_REF_NAME}/headlamp-polaris-plugin-${VERSION}.tar.gz\"|" artifacthub-pkg.yml sed -i "s|^version:.*|version: ${VERSION}|" artifacthub-pkg.yml git add artifacthub-pkg.yml git diff --cached --quiet || { git commit -m "ci: update artifact hub metadata for ${GITHUB_REF_NAME}" - git push origin main + git push origin temp-update:${GITEA_BRANCH} } # Force-move tag to the commit with correct checksum. # This triggers a new CI run, but the guard step will detect @@ -179,7 +185,8 @@ jobs: git tag -f ${GITHUB_REF_NAME} git push -f origin ${GITHUB_REF_NAME} # Also push to GitHub directly to avoid waiting for mirror sync - git remote add github https://x-access-token:${{ secrets.GH_PAT }}@github.com/cpfarhood/headlamp-polaris-plugin.git 2>/dev/null || true - git push github main 2>/dev/null || true + # Dev versions go to main branch of dev repo, stable versions to main of main repo + git remote add github https://x-access-token:${{ secrets.GH_PAT }}@github.com/${GITHUB_REPO}.git 2>/dev/null || true + git push github temp-update:main 2>/dev/null || true git push -f github ${GITHUB_REF_NAME} 2>/dev/null || true echo "Tag ${GITHUB_REF_NAME} aligned with updated metadata"