Skip to content

"Bad range" error when pushing images to the container registry #34724

Closed
@jacopo-j

Description

@jacopo-j

Description

I set up a simple Gitea Actions workflow for building a Docker image and publishing it on the container registry of the same Gitea instance. You can find the workflow file here.

During the publishing phase, the workflow fails with the following error:

::error::buildx failed with: ERROR: bad range format: 0--1

You can find the whole workflow log here, the error is at line 530-535.

I could not find any specific information regarding that error message, neither here nor elsewhere online. However, it likely comes from a response from the Gitea container registry.

By changing the workflow to publish the image con docker.io rather than my Gitea instance, everything works without errors, suggesting that the issue is not with a malformed Docker image (which I tried to re-build multiple times, by the way), but with the container registry itself.

Gitea Version

1.24.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.30.1

Operating System

macOS 11.6.3

How are you running Gitea?

Native using pre-build binaries for macOS

Database

MySQL/MariaDB

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions