Explain missing registry secrets before publishing
All checks were successful
Test and publish Homegate / checks (push) Successful in 26s
Test and publish Homegate / publish (push) Has been skipped

This commit is contained in:
2026-10-14 02:02:16 +03:00
parent 3d329cc637
commit dd0f4ff8a8
2 changed files with 31 additions and 0 deletions

View File

@@ -60,6 +60,23 @@ jobs:
DOCKER_BUILD_SUMMARY: "false"
DOCKER_BUILD_RECORD_UPLOAD: "false"
steps:
- name: Validate registry credentials
shell: bash
env:
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
run: |
set -euo pipefail
missing=0
if [ -z "${REGISTRY_USERNAME:-}" ]; then
echo "::error::Missing Actions secret REGISTRY_USERNAME. Set it in Repository Settings > Actions > Secrets to the Gitea username that owns REGISTRY_TOKEN."
missing=1
fi
if [ -z "${REGISTRY_TOKEN:-}" ]; then
echo "::error::Missing Actions secret REGISTRY_TOKEN. Set it in Repository Settings > Actions > Secrets to a Gitea personal access token with write:package permission. Actions Variables and runner environment variables do not populate secrets.REGISTRY_TOKEN."
missing=1
fi
exit "$missing"
- name: Checkout release
uses: https://github.com/actions/checkout@v4
with: