Skip to content

Fix Docker CI: switch from Docker Hub to GitHub Container Registry#250

Merged
Marketen merged 2 commits into
mainfrom
copilot/fix-failing-docker-job
Jul 2, 2026
Merged

Fix Docker CI: switch from Docker Hub to GitHub Container Registry#250
Marketen merged 2 commits into
mainfrom
copilot/fix-failing-docker-job

Conversation

Copilot AI commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

The docker CI job was failing because DOCKERHUB_TOKEN has read-only scope, causing push to registry-1.docker.io to fail with insufficient_scope: authorization failed.

Changes

  • Both push_master.yml and release.yml: Replace Docker Hub login (DOCKERHUB_USERNAME/DOCKERHUB_TOKEN) with GitHub Container Registry login (ghcr.io via GITHUB_TOKEN)
  • Image tags: Updated from dappnode/mev-sp-oracle:*ghcr.io/dappnode/mev-sp-oracle:*
  • Permissions: Added packages: write to both jobs (required for ghcr.io push)
permissions:
  contents: read
  packages: write
# ...
- name: Login to GitHub Container Registry
  uses: docker/login-action@v3
  with:
    registry: ghcr.io
    username: ${{ github.actor }}
    password: ${{ secrets.GITHUB_TOKEN }}

GITHUB_TOKEN is automatically scoped with push access to the repository's packages, eliminating the dependency on externally-managed Docker Hub credentials.

Copilot AI changed the title [WIP] Fix the failing GitHub Actions job docker Fix Docker CI: switch from Docker Hub to GitHub Container Registry Jul 2, 2026
Copilot AI requested a review from Marketen July 2, 2026 17:49
@Marketen Marketen marked this pull request as ready for review July 2, 2026 17:51
@Marketen Marketen merged commit d74dc6c into main Jul 2, 2026
4 checks passed
@Marketen Marketen deleted the copilot/fix-failing-docker-job branch July 2, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants