Skip to content

[Archery] archery docker push doesn't support ghcr.io #47795

Description

@kou

Describe the bug, including details regarding any error messages, version, and platform.

We can change Docker registry by REPO in docker-compose.yml but Archery doesn't recognize it.

Use case:

REPO: ghcr.io/${{ github.repository }}-dev

- name: Docker Push
if: >-
success() &&
github.event_name == 'push' &&
github.ref_name == 'main'
env:
ARCHERY_DOCKER_USER: ${{ github.actor }}
ARCHERY_DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true
run: archery docker push cpp-jni

https://github.com/apache/arrow/actions/runs/18445566748/job/52551782069#step:7:19

Error response from daemon: Get "https://registry-1.docker.io/v2/": unauthorized: incorrect username or password
Traceback (most recent call last):
  File "/home/runner/work/arrow/arrow/dev/archery/archery/docker/core.py", line 229, in _execute_docker
    result = Docker().run(*args, **kwargs)
  File "/home/runner/work/arrow/arrow/dev/archery/archery/utils/command.py", line 78, in run
    return subprocess.run(invocation, **kwargs)
           ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.13.7/x64/lib/python3.13/subprocess.py", line 577, in run
    raise CalledProcessError(retcode, process.args,
                             output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['docker', 'login', '-u', 'kou', '-p', '***']' returned non-zero exit status 1.

Component(s)

Archery

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions