Skip to content

fix: Update OCI registry publishing in release workflow#2294

Open
TerryHowe wants to merge 1 commit intogoharbor:mainfrom
TerryHowe:fix/oci-registry-publishing
Open

fix: Update OCI registry publishing in release workflow#2294
TerryHowe wants to merge 1 commit intogoharbor:mainfrom
TerryHowe:fix/oci-registry-publishing

Conversation

@TerryHowe
Copy link

Description

This PR fixes the OCI registry publishing issue in the release workflow.

Changes

  • Remove Docker Hub push that fails with authentication errors due to missing credentials
  • Fix GHCR push to use the organization path (ghcr.io/goharbor) instead of personal account (ghcr.io/${{ github.actor }})
  • Properly authenticate using GITHUB_TOKEN which is available in GitHub Actions

Fixes

Closes #2265

- Remove Docker Hub push that fails with authentication errors
- Fix GHCR push to use organization path (ghcr.io/goharbor) instead of personal account
- Properly authenticate using GITHUB_TOKEN which is available in Actions

Fixes goharbor#2265

Signed-off-by: Developer <dev@example.com>
@TerryHowe TerryHowe force-pushed the fix/oci-registry-publishing branch from c8fac53 to c59accd Compare January 7, 2026 17:03
Copy link

@bupd bupd left a comment

Choose a reason for hiding this comment

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

Thanks @TerryHowe

I believe we should fix the env vars rather than removing the dockerhub push.

looks like this has been failing for a past couple of months

Image

@bupd
Copy link

bupd commented Jan 7, 2026

@MinerYang thoughts ??

@TerryHowe
Copy link
Author

Heya @bupd been a minute. I was thinking delivering charts to ghcr would almost certain work and that would unblock the problem. If someone really wants to deliver to docker.io, that could be a follow up.

@MinerYang
Copy link
Collaborator

Sorry everyone, I was just back from a sick leave. Will take a look recently.

@TerryHowe
Copy link
Author

ping

@bupd
Copy link

bupd commented Feb 19, 2026

cc // @MinerYang

Copy link

@bupd bupd left a comment

Choose a reason for hiding this comment

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

/lgtm

helm registry login registry-1.docker.io -u ${{ secrets.DOCKER_HUB_USERNAME }} -p ${{ secrets.DOCKER_HUB_PASSWORD }}
helm push ${{ env.PACKAGE_PATH }} oci://registry-1.docker.io/${{ secrets.DOCKER_HUB_USERNAME }}
helm registry login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
helm push ${{ env.PACKAGE_PATH }} oci://ghcr.io/${{ github.actor }}

Choose a reason for hiding this comment

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

Isn't oci://ghcr.io/${{ github.actor }} still wrong/brittle?

Suggested change
helm push ${{ env.PACKAGE_PATH }} oci://ghcr.io/${{ github.actor }}
helm push ${{ env.PACKAGE_PATH }} oci://ghcr.io/$GITHUB_REPOSITORY_OWNER

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Release Harbor Helm Chart as OCI artifact

4 participants