Docker Push失败了Gitlab CI

发布于 2025-01-23 21:14:31 字数 870 浏览 4 评论 0原文

我是Gitlab的新手,我想创建一个Gitlab CI管道,该管道可以构建Docker图像并基本上将其推向我的Dockerhub。我在GitLab中创建了一个免费帐户,并创建了一个简单的管道。以下是我的管道。

以下是环境变量(注意:我要去dockerhub)

”在此处输入图像说明“

< img src =“ https://i.sstatic.net/pp3c4.png” alt =“在此处输入图像说明”>

但说登录失败。用户名和密码正确

“在此处输入图像描述”

我需要创建一个令牌吗?

I am new to GitLab and I want create a Gitlab CI pipeline which builds the Docker image and basically pushes it to my Dockerhub. I created a Free account in Gitlab and created a simple pipeline. Below is my pipeline.

Below are the Environment Variables (Note: I'm pushing to DockerHub)

enter image description here

enter image description here

But it says login failed. Username and password is correct

enter image description here

Do I need to create a Token ?

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

故笙诉离歌 2025-01-30 21:14:31

运行管道的分支是否受到保护?由于仅在受保护的分支和吉特拉布中的标签中可以看到受保护的变量

is the branch running the pipeline protected? since protected variables are seen only in protected branches and tags in gitlab

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文