From 01baaf41b347a80dbb0eb364677856e6f677c3d5 Mon Sep 17 00:00:00 2001 From: Joseph Ware <53935796+DiamondJoseph@users.noreply.github.com> Date: Fri, 28 Nov 2025 10:20:41 +0000 Subject: [PATCH 1/2] fix(ci): Allow helm to publish when forked --- .github/workflows/publish-image.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml index 91e7272f3..292c49686 100644 --- a/.github/workflows/publish-image.yml +++ b/.github/workflows/publish-image.yml @@ -10,10 +10,6 @@ on: branches: ['main'] tags: ['v*'] -env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} - jobs: build-and-push: runs-on: ubuntu-latest @@ -30,7 +26,7 @@ jobs: - name: Log in to the Container registry uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3 with: - registry: ${{ env.REGISTRY }} + registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} @@ -50,7 +46,7 @@ jobs: id: meta uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + images: ghcr.io/${{ github.repository }} tags: | type=semver,pattern={{version}} type=raw,value=latest @@ -80,7 +76,7 @@ jobs: - name: Log in to the Chart registry run: | - echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} --username ${{ github.repository_owner }} --password-stdin + echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ghcr.io/${{ github.repository }} --username ${{ github.repository_owner }} --password-stdin - name: Package and Push chart if: github.ref_type == 'tag' @@ -90,5 +86,7 @@ jobs: - name: Publish Helm chart if: github.ref_type == 'tag' + env: + REPO: ${{ github.repository_owner }} run: | - helm push /tmp/tiled-${{ steps.meta.outputs.version }}.tgz oci://ghcr.io/bluesky/charts + helm push /tmp/tiled-${{ steps.meta.outputs.version }}.tgz oci://ghcr.io/${REPO@L}/charts From 2d6a420511676f53d4d533c8e0a3ea28b9053be0 Mon Sep 17 00:00:00 2001 From: Joseph Ware <53935796+DiamondJoseph@users.noreply.github.com> Date: Fri, 28 Nov 2025 10:27:52 +0000 Subject: [PATCH 2/2] chore: Add changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3040ffcd..e0dad62c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ Write the date in place of the "Unreleased" in the case a new version is release # Changelog +## Unreleased + +### Fixed + +- Made provision for forks of the repository to publish Helm charts. + ## v0.2.2 (2025-11-25) ### Changed