From c7ed642517ee575363af38855eb84e40e2406033 Mon Sep 17 00:00:00 2001 From: John Coffey Date: Mon, 21 Sep 2026 23:20:53 -0700 Subject: [PATCH] ci: fail clearly when PACKAGE_TOKEN is missing --- .gitea/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 56f38a4..bfcdeca 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -111,6 +111,7 @@ jobs: - run: | test -n "$REGISTRY" echo "VERSION=${GITHUB_REF_NAME#v}" >> "$GITHUB_ENV" + test -n "$PACKAGE_TOKEN" || { echo "PACKAGE_TOKEN secret is not set on this repository" >&2; exit 1; } echo "$PACKAGE_TOKEN" | docker login -u jcoffey-dev --password-stdin "$REGISTRY" docker run --privileged --rm tonistiigi/binfmt --install arm64 docker buildx create --use --name gitea-builder --driver docker-container || docker buildx use gitea-builder