fix reg pusch #1

Merged
sandrodach merged 1 commits from main into 8.5 2026-10-23 23:39:14 +02:00
Showing only changes of commit 37c218130c - Show all commits
+11 -2
View File
@@ -153,9 +153,18 @@ jobs:
- name: Login to Gitea Container Registry
if: success() && gitea.event_name != 'pull_request'
env:
PKG_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
FALLBACK_TOKEN: ${{ gitea.token }}
run: |
echo "${{ secrets.PACKAGE_TOKEN || gitea.token }}" | \
docker login "${REGISTRY}" -u "${{ gitea.actor }}" --password-stdin
if [ -n "${PKG_TOKEN}" ]; then
echo "Nutze hinterlegtes Secret PACKAGE_TOKEN für Registry-Login..."
TOKEN="${PKG_TOKEN}"
else
echo "WARNUNG: Secret PACKAGE_TOKEN ist leer/nicht gesetzt! Versuche Fallback auf gitea.token..."
TOKEN="${FALLBACK_TOKEN}"
fi
echo "${TOKEN}" | docker login "${REGISTRY}" -u "${{ gitea.actor }}" --password-stdin
- name: Push Docker Image
if: success() && gitea.event_name != 'pull_request'