简体   繁体   English

无法从 GitHub 在 Docker Hub 上创建构建

[英]Unable to create Build on Docker Hub from GitHub

I just created a new account on hub.docker.com.我刚刚在 hub.docker.com 上创建了一个新帐户。 I successfully linked my GitHub account in settings.我在设置中成功链接了我的 GitHub 帐户。 After I clicked on Create Repository , I am presented with the familiar screen, where I can create a new docker repository.单击Create Repository ,我会看到熟悉的屏幕,我可以在其中创建新的 docker 存储库。 However, the first strange thing here I noticed is, that I don't have the additional build options.然而,我注意到的第一个奇怪的事情是,我没有额外的构建选项。

This is what is missing:这是缺少的:

尝试创建新存储库时我看不到此部分

I went on and created a blank repository.我继续创建了一个空白存储库。 After that I went to the builds tab and clicked on the GitHub button, which said I was connected:之后,我转到 builds 选项卡并单击 GitHub 按钮,该按钮表示我已连接: 在此处输入图片说明

In the following screen, I can select the the desired repository.在以下屏幕中,我可以选择所需的存储库。 After filling out the remainder of the form, nothing happens after I click Save or Save and Build .填写完表单的其余部分后,单击SaveSave and Build后没有任何反应。 I do not see any error messages popping up either.我也没有看到任何错误消息弹出。

Any ideas what I am doing wrong with this newly created docker account?任何想法我对这个新创建的 docker 帐户做错了什么?

Thank you very much for your time and help!非常感谢您的时间和帮助!

For GitHub, I'd recommend this guide for setting up a connection with GitHub Actions and Docker.对于 GitHub,我建议使用本指南来设置与 GitHub Actions 和 Docker 的连接。

I've only set up a connection with BitBucket and Docker, but I'll share the process with BitBucket for anyone else searching, or in case that provides any additional insight that might help with GitHub.我只建立了与 BitBucket 和 Docker 的连接,但我会与 BitBucket 共享该过程以供其他搜索者使用,或者提供任何可能有助于 GitHub 的其他见解。

In BitBucket, you need to set up a pipeline to push the build to the repo.在 BitBucket 中,您需要设置管道将构建推送到 repo。 The docs here outline the process. 此处的文档概述了该过程。

A quick summary of the steps in BitBucket: BitBucket 中步骤的快速总结:

  1. Go to your repo in bit bucket转到位桶中的仓库
  2. Click on pipelines and add the Docker template单击管道并添加 Docker 模板
  3. Update the image name in the yml template更新 yml 模板中的图像名称
  4. Commit the yml to the repo将 yml 提交到 repo
  5. Set up the variables in the repository settings in BitBucket for your credentials and repo slug在 BitBucket 的存储库设置中为您的凭据和 repo slug 设置变量
  6. Check the status of your build in the pipelines tab, it should automatically rebuild up update.在管道选项卡中检查您的构建状态,它应该会自动重建更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM