diff --git a/.github/workflows/server-publish.yml b/.github/workflows/server-publish.yml index 8d2aec771..d728a3e3c 100644 --- a/.github/workflows/server-publish.yml +++ b/.github/workflows/server-publish.yml @@ -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 diff --git a/server/docs/publish.md b/server/docs/publish.md index 7984648e4..de4849d90 100644 --- a/server/docs/publish.md +++ b/server/docs/publish.md @@ -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".