actions: registry token
Build and Publish Container / Publish Linux container (push) Successful in 6m24s
Build and Publish Container / Publish Linux container (push) Successful in 6m24s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user