I have a bitbucket (cloud) Workspace, Repository ( private ). Have some Golang code under such a repository.
I am trying to Dockerise a simple Golang app which needs to download code (dependent) from the private bitbucket repo.
I have added SSH keys, generate App passwords etc. Tried couple of ways, but have been unlucky for "go mod download" step to work in my dockerfile.
docker build error:
go mod download: reading https://api.bitbucket.org/2.0/repositories/MyWorkspace/MyRepo?fields=scm: 401 Unauthorized
Anyone faced a similar situation by any chance? Any help, pointers will be appreciated. Thanks.