From 07ffda08fe40a4d9ce04d820150841acea25a33e Mon Sep 17 00:00:00 2001 From: Austin Burdine Date: Mon, 29 Jun 2026 15:58:38 -0400 Subject: [PATCH] Added trigger for docker-library-ghost auto-update after npm publish no ref This trigger will invoke the auto-update workflow in the TryGhost/docker-library-ghost repo to automatically bump the docker image version and create a PR against the docker-library/official-images repo. --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1de6d71fe56..5016f844eed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1868,6 +1868,25 @@ jobs: - name: Publish to npm run: npm publish ghost-*.tgz --access public + # --------------------------------------------------------------------------- # + # Trigger docker-library-ghost auto-update — runs after the npm package is + # published so the Docker library picks up the new release. + # --------------------------------------------------------------------------- # + trigger_docker_library_update: + needs: [publish_ghost] + name: Trigger docker-library-ghost update + runs-on: ubuntu-latest + if: | + startsWith(github.ref, 'refs/tags/v') + && github.repository == 'TryGhost/Ghost' + steps: + - name: Dispatch to TryGhost/docker-library-ghost + uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4 + with: + token: ${{ secrets.CANARY_DOCKER_BUILD }} + repository: TryGhost/docker-library-ghost + event-type: ghost-version-publish + # --------------------------------------------------------------------------- # # Create GitHub Release — runs after successful npm publish # --------------------------------------------------------------------------- #