Skip to content

Add Docker Hub publishing to CI workflow#373

Open
ZobbeLunar wants to merge 2 commits intodiscord:mainfrom
ZobbeLunar:add-dockerhub-publish
Open

Add Docker Hub publishing to CI workflow#373
ZobbeLunar wants to merge 2 commits intodiscord:mainfrom
ZobbeLunar:add-dockerhub-publish

Conversation

@ZobbeLunar
Copy link

@ZobbeLunar ZobbeLunar commented Feb 23, 2026

Summary

Closes #338

This PR adds Docker Hub publishing alongside the existing Google Artifact Registry push in the Docker Image CI workflow.

Changes

  • Added a Login to Docker Hub step using docker/login-action@v3 with DOCKERHUB_USERNAME and DOCKERHUB_TOKEN secrets
  • Added Docker Hub tags (discord/access:latest and discord/access:${{ github.sha }}) to the existing build-push step so the image is built once and pushed to both registries

Required Setup

The following repository secrets need to be configured before this will work:

The Docker Hub repository discord/access should also be created beforehand.

secrets: |
"SENTRY_ORG=${{ secrets.SENTRY_ORG }}"
"SENTRY_PROJECT=${{ secrets.SENTRY_PROJECT }}"
"SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll want to make publishing to Dockerhub a separate flow as we don't want this SENTRY_AUTH_TOKEN pushed to the public

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have now reverted the docker-image.yml to its original state and created a seperate workflow in docker-hub.yml

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.

Request: Publish official Docker images publicly

2 participants