From 16e6b69fc7640589256e6d8d82b765c4e1dfde46 Mon Sep 17 00:00:00 2001 From: David Culbreth Date: Fri, 20 Mar 2026 16:33:55 -0500 Subject: [PATCH] updating publish workflow again --- .gitea/workflows/publish.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 50c7e12..303ba69 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -167,6 +167,20 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Configure Docker daemon for plain HTTP registry + if: needs.metadata.outputs.registry_plain_http == 'true' + uses: docker/setup-docker-action@v4 + with: + daemon-config: | + { + "features": { + "containerd-snapshotter": true + }, + "insecure-registries": [ + "${{ needs.metadata.outputs.registry }}" + ] + } + - name: Setup Docker Buildx if: needs.metadata.outputs.registry_plain_http != 'true' uses: docker/setup-buildx-action@v3 @@ -197,10 +211,6 @@ jobs: exit 1 fi - if [ "${{ needs.metadata.outputs.registry_plain_http }}" = "true" ]; then - registry="http://${registry}" - fi - printf '%s' "$password" | docker login "$registry" \ --username "$username" \ --password-stdin