From 848fa34b5695585c12cfec01146ab6e9541cff8e Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Wed, 8 May 2024 11:24:56 +0530 Subject: [PATCH] [server] Tag the source code for latest ghcr.io Docker image with museum/ghcr Helps with easily finding changes since last publish. --- .github/workflows/server-publish.yml | 5 +++++ server/docs/publish.md | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/server-publish.yml b/.github/workflows/server-publish.yml index 1ba1935171..d54781c556 100644 --- a/.github/workflows/server-publish.yml +++ b/.github/workflows/server-publish.yml @@ -38,3 +38,8 @@ jobs: tags: ${{ inputs.commit }}, latest username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + + - name: Tag as museum/ghcr + run: | + git tag -f museum/ghcr + git push -f origin museum/ghcr diff --git a/server/docs/publish.md b/server/docs/publish.md index de4849d900..5dd0e7cff3 100644 --- a/server/docs/publish.md +++ b/server/docs/publish.md @@ -39,3 +39,7 @@ combine both these steps too. Once the workflow completes, the resultant image will be available at `ghcr.io/ente-io/server`. The image will be tagged by the commit SHA. The latest image will also be tagged, well, "latest". + +The workflow will also tag the commit it used to build the image with +`museum/ghcr`. This tag will be overwritten on each publish, and it'll point to +the code that was used in the most recent publish.