Reputation: 25974
Automated build on Docker Hub - I see no repositories when linking?
I have created an account on Bitbucket which is attached to a repository (no team, no group, just a user on a prepository).
In Docker Hub, I tried to link to Bitbucket via button + Add Repository / "Automated Build".
I get logged in alright, but it says "No repos available".
That is strange as I can see the repository when logged into Bitbucket with this specific user. I have created this Bitbucket user for the sole purpose of being able to see that repository.
Upvotes: 1
Views: 1160
Reputation: 2242
I had the same problem - it seems that the linked user should be "owner" or "creator" of the repository.
Tests:
I added additional user to the BitBucket repository as "admin" (also with read & write permissions) and tried to link this user.
The result: "No repos available"
Then, I tried the same with "owner" and "creator" accounts of the repository and it worked.
So, you should try to link users which are authorized as "owner" or "creator":
Go to Bitbucket repo -> Settings -> Access management -> Users - try only with "owner" or "creator" accounts
Don't forget to unlink the old accounts:
in Bitbuket: OAuth in "Manage account" -> "ACCESS MANAGEMENT" -> "OAuth"
in Docker Hub: "Profile settings" -> "Linked Accounts"
Upvotes: 1