网址中的位桶凭据



我遇到的情况是我想从 azure 的位桶中提取。这个回购是一个私有的,所以在某种程度上我必须指定凭据。

所以我想尝试这样的事情:https://username:password@bitbucket.org/mycompany/myrep.git

有人知道或这可能有效吗?还是我可能需要使用一些SSH结构?我使用 Kudu ARM 模板,您可以在其中指定存储库和分支,但到目前为止,我还没有找到指定凭据的方法。

对于位桶,您可以使用凭据缓存

git config --global credential.helper 'cache --timeout 3600'

点击此链接

获取更多信息 .

这个答案应该有效:如何将凭据添加到 Docker ADD 命令


应该像这样简单:

ARG bitbucket_pwd
ARG commit
ADD "https://user@domain.com:$bitbucket_pwd@bitbucket.org/teros/vana/raw/$commit/mw/requirements.txt"  '/temp/requirements.txt'

您可以使用--build-arg传递 ARG

docker build --build-arg bitbucket_pwd="$bitbucket_password"

相关内容

  • 没有找到相关文章

最新更新