This commit is contained in:
Manav Rathi 2024-03-27 12:57:37 +05:30
parent fc8e79fbe9
commit cb45a070be
No known key found for this signature in database
2 changed files with 8 additions and 2 deletions

View file

@ -5,6 +5,8 @@ on:
#
# To obtain the commit from the currently deployed museum, do:
# curl -s https://api.ente.io/ping | jq -r '.id'
#
# See server/docs/publish.md for more details.
workflow_dispatch:
inputs:
commit:
@ -13,7 +15,7 @@ on:
required: true
jobs:
build:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code

View file

@ -34,4 +34,8 @@ Then, trigger the "Publish (server)" workflow, providing it the commit. You can
trigger it either from GitHub's UI or using the `gh cli`. With the CLI, we can
combine both these steps too.
Once the workflow completes, the resultant image will be available at `ghcr.io/ente-io/server`.
gh workflow run server-publish.yml -F commit=`curl -s https://api.ente.io/ping | jq -r '.id'`
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".