Update Docker build workflow to use secrets for registry authentication

- Change username and password fields in the Docker login action to utilize secrets for enhanced security.
- Ensure compatibility with different registry user configurations by allowing fallback to the repository owner.
This commit is contained in:
smueller
2026-07-07 14:34:36 +02:00
parent f4386f41b4
commit 5ce4555b4d

View File

@@ -32,8 +32,8 @@ jobs:
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ${{ env.REGISTRY }} registry: ${{ env.REGISTRY }}
username: ${{ github.actor }} username: ${{ secrets.REGISTRY_USER || github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN }}
- name: Metadaten (Tags & Labels) bestimmen - name: Metadaten (Tags & Labels) bestimmen
id: meta id: meta