【发布时间】:2021-01-04 00:09:35
【问题描述】:
我正在通过 GitHub Actions: Publish to GitHub Packages 的培训学习 CD。
所以我创建了一个 Dockerfile,但它无法构建。我不明白为什么会发生这个错误。怎么解决?
到目前为止,我只使用机器人提供的源代码,所以很难想到一个简单的错字。
https://github.com/CreatorOfWhileStudying/github-actions-for-packages/pull/3
这是错误消息的摘录。
Logging in to registry docker.pkg.github.com
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /github/home/.docker/config.json.
Configure a credential helper to remove this warning. See
Login Succeeded
Building image [docker.pkg.github.com/CreatorOfWhileStudying/github-actions-for-packages/tic-tac-toe:sha-05b1cf1]
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
invalid argument "docker.pkg.github.com/CreatorOfWhileStudying/github-actions-for-packages/tic-tac-toe:sha-05b1cf1" for "-t, --tag" flag: invalid reference format: repository name must be lowercase
See 'docker build --help'.
Error: exit status 125
【问题讨论】:
标签: git docker github github-actions