Invalid tag/reference format with ghcr.io
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 35/100
调研方向
首先,使用 cloudposse/[email protected] 复现所示的工作流,并将其输入与生成的 buildx 命令进行比较。跟踪 registry、organization 和 repository 的值如何变成镜像标签;完成的标准是工作流生成有效的 ghcr.io 标签,且路径不为空。
由索引模型根据 Issue 内容生成。
描述
Found a bug? Maybe our Slack Community can help.
Describe the Bug
Hello,
I'm trying to set up a Github Workflow that uses this action to create and publish a docker image to ghcr.io.
I'm getting an error on the Builder info step
Error: buildx failed with: ERROR: invalid tag "ghcr.io//:sha-8cc8e90c5ebb6ff27df767484b7f95f9d70f3faa": invalid reference format
Expected Behavior
I expect the default tags to work.
Steps to Reproduce
Whenever a workflow action runs, see below.
Screenshots
See below
Environment (please complete the following information):
My (simplified) workflow config
name: Release
on:
push:
branches:
- main
release:
type: [published]
permissions:
contents: read
packages: write
jobs:
build-and-push-image:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build and push
uses: cloudposse/[email protected]
with:
registry: ghcr.io
login: ${{ github.actor }}
password: ${{ secrets.github_token }}
organization: ${{ github.repository.owner.login }}
repository: ${{ github.repository.name }}
Additional Context
Error output
/usr/bin/docker buildx build --cache-from type=gha --cache-to type=gha,mode=max --file .//Dockerfile --iidfile /home/runner/work/_temp/docker-actions-toolkit-SPmw6I/build-iidfile-1c3c362c17.txt --label org.opencontainers.image.created=2025-01-14T13:35:44.838Z --label org.opencontainers.image.description=Project description --label org.opencontainers.image.licenses= --label org.opencontainers.image.revision=8baa8e2249f3a8b6e427ef8eecd0847f660d4099 --label org.opencontainers.image.source=https://github.com// --label org.opencontainers.image.title=my-project --label org.opencontainers.image.url=https://github.com/my-org/my-project --label org.opencontainers.image.version=sha-8baa8e2249f3a8b6e427ef8eecd0847f660d4099 --platform linux/amd64 --attest type=provenance,mode=min,inline-only=true,builder-id=https://github.com/my-org/my-project/actions/runs/12768807147 --tag ghcr.io//:sha-8baa8e2249f3a8b6e427ef8eecd0847f660d4099 --tag ghcr.io//:main --tag ghcr.io//:latest --tag ghcr.io//:sha-8baa8e2 --metadata-file /home/runner/work/_temp/docker-actions-toolkit-SPmw6I/build-metadata-e623a3464d.json --pull --push ./
ERROR: invalid tag "ghcr.io//:sha-8baa8e2249f3a8b6e427ef8eecd0847f660d4099": invalid reference format
Error: buildx failed with: ERROR: invalid tag "ghcr.io//:sha-8baa8e2249f3a8b6e427ef8eecd0847f660d4099": invalid reference format
- 主要语言
- Dockerfile
- 星标
- 14
- 派生
- 15
- 平均合并
- 8 小时 45 分钟
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
cloudposse/github-action-docker-build-push 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
-
bug
难度 3/5 1-2 天 新手友好度 35/100
-
triage
难度 3/5 1-2 天 新手友好度 35/100
cloudposse/github-action-docker-build-push#57 · 3 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 20/100
查看 cloudposse/github-action-docker-build-push 的全部 Issue
相似的 Issue
-
Sanity on ansible-core devel fails: ignore-2.23.txt references the removed import-3.9 test可能已有人在做 @yurnov 今天认领。 未关闭needs_triage
难度 1/5 1 小时以内 新手友好度 91/100
ansible-collections/kubernetes.core#1275 ·
维护者通常 1 天内回复
-
bug milestone-qa
难度 2/5 1-3 小时 新手友好度 85/100
lognorman20/monaco#3995 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
gnosis/gnosis_vpn#540 ·
维护者通常 1 天内回复
-
e2e-failure ready-to-code
难度 2/5 1-3 小时 新手友好度 78/100
redhat-developer/rhdh-plugin-export-overlays#4261 · 1 条评论 ·
维护者通常 1 天内回复