[server] Tag the source code for latest ghcr.io Docker image with museum/ghcr (#1656)

Helps with easily finding changes since last publish.
This commit is contained in:
Manav Rathi 2024-05-08 12:19:08 +05:30 committed by GitHub
commit 8f2580e13f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View file

@ -38,3 +38,8 @@ jobs:
tags: ${{ inputs.commit }}, latest
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Tag as server/ghcr
run: |
git tag -f server/ghcr
git push -f origin server/ghcr

View file

@ -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
`server/ghcr`. This tag will be overwritten on each publish, and it'll point to
the code that was used in the most recent publish.