actions: registry token
Build and Publish Container / Publish Linux container (push) Successful in 6m24s

This commit is contained in:
2026-10-02 13:02:06 -04:00
parent 7ac541def5
commit fa6eb856dc
2 changed files with 22 additions and 5 deletions
+13 -2
View File
@@ -40,12 +40,23 @@ jobs:
echo "registry=$registry" >> "$GITHUB_OUTPUT"
echo "image=$registry/$repository" >> "$GITHUB_OUTPUT"
- name: Verify registry credentials
shell: bash
env:
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
run: |
set -euo pipefail
if [[ -z "$REGISTRY_TOKEN" ]]; then
echo "::error::Add a REGISTRY_TOKEN repository secret containing a Gitea personal access token with write:package permission."
exit 1
fi
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: ${{ steps.image.outputs.registry }}
username: ${{ secrets.REGISTRY_USERNAME || github.actor }}
password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
username: ${{ secrets.REGISTRY_USERNAME || 'HRiggs' }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Generate image metadata
id: meta