Updated docker-compose to use environmental variables instead
CI / test (push) Successful in 56s

This commit is contained in:
IxianPixel committed 2026-11-06 15:25:41 +00:00
1 parent 577715bb40
commit 35a26a285d
3 files changed
+56 -13

No files matched your search

+16 -4
View File
@@ -51,6 +51,19 @@ jobs:
node .github/scripts/changelog.mjs "$GITHUB_REF_NAME" > dist/release-notes.md
cat dist/release-notes.md
# Gitea doesn't let the workflow's own token push packages, so the image
# needs a personal access token. Checked here so a missing secret fails
# before the long build, not after the release is published.
- name: Check the registry secrets are set
env:
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
run: |
if [ -z "$REGISTRY_USER" ] || [ -z "$REGISTRY_TOKEN" ]; then
echo "::error::Set the REGISTRY_USER (your Gitea username) and REGISTRY_TOKEN (a token with package read and write) secrets under the repo's Settings → Actions → Secrets, then re-run."
exit 1
fi
- name: Build the UI
run: |
npm --prefix ui ci
@@ -103,12 +116,11 @@ jobs:
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
# Pushes <gitea host>/<owner>/jellymove:<version>, plus :latest unless the
# tag is a pre-release. The workflow's own token is tried first; if Gitea
# refuses it, add REGISTRY_USER and REGISTRY_TOKEN (write:package) secrets.
# tag is a pre-release.
- name: Publish the Docker image
env:
REGISTRY_USER: ${{ secrets.REGISTRY_USER || github.actor }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
run: |
registry="${GITHUB_SERVER_URL#*://}"
registry="${registry%%/*}"