fix: streamline Docker registry configuration for improved login and metadata extraction
Build and Push Docker Image / build (push) Has been cancelled

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
hwinkel
2026-04-25 14:01:14 +02:00
parent f67da67abd
commit d56144b39c
+7 -11
View File
@@ -6,8 +6,7 @@ on:
- main
env:
REGISTRY_HOST: gitea.gitea.svc.cluster.local:3000
REGISTRY_HTTP: http://gitea.gitea.svc.cluster.local:3000
REGISTRY: gitea.gitea.svc.cluster.local
IMAGE_NAME: ${{ gitea.repository }}
jobs:
@@ -23,22 +22,19 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-config-inline: |
[registry."${{ env.REGISTRY_HOST }}"]
http = true
insecure = true
- name: Log in to Gitea Container Registry
shell: bash
run: |
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login "${{ env.REGISTRY_HTTP }}" -u "${{ gitea.repository_owner }}" --password-stdin
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ gitea.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_HOST }}/${{ env.IMAGE_NAME }}
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=sha,prefix=,format=short
type=raw,value=latest,enable={{is_default_branch}}