fix: update Docker registry configuration for improved login and metadata extraction
Build and Push Docker Image / build (push) Failing after 25s

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