You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
image: publish public images to ghcr.io with the caller's GITHUB_TOKEN - #15
bash -c 'docker logout ghcr.io >/dev/null 2>&1; for r in alpha beta; do echo "== ghcr.io/mouriya-devops/ci-selftest/$r:latest (anonymous)"; docker buildx imagetools inspect ghcr.io/mouriya-devops/ci-selftest/$r:latest --format '\''{{json .Image.Config.Labels}}'\''; done; for p in alpha beta; do gh api orgs/mouriya-devops/packages/container/ci-selftest%2F$p --jq '\''[.name,.visibility]|@tsv'\''; done'
exit 0 · 5.2s
2
service
结果 2
正例
start
已记录
bash -c 'for id in 43607512747 43607514754; do gh run view $id -R mouriya-devops/ci --json headSha,conclusion --jq '\''["'\''$id'\''",.headSha,.conclusion]|@tsv'\''; done'
exit 0 · 1.2s
2
service
结果 2
正例
log
已记录
bash -c 'for id in 43607512747 43607514754; do echo == $id; gh run view $id -R mouriya-devops/ci --log-failed | grep -E '\''##\[error\]'\'' | cut -c1-260; done'
exit 0 · 6.5s
2
service
结果 2
正例
request
已记录
bash -c 'for id in 43607512747 43607514754; do gh run view $id -R mouriya-devops/ci --log-failed | grep -c '\''invalid input images'\''; done'
exit 1 · 4.2s
3
service
结果 3
保持
start
已记录
bash -c 'for id in 43607516782 43607827024; do gh run view $id -R mouriya-devops/ci --json headSha,conclusion --jq '\''["'\''$id'\''",.headSha,.conclusion]|@tsv'\''; done; gh secret list -R mouriya-devops/ci | wc -l'
行 1 request · exit 0 · bash -c 'docker logout ghcr.io >/dev/null 2>&1; for r in alpha beta; do echo "== ghcr.io/mouriya-devops/ci-selftest/$r:latest (anonymous)"; docker buildx imagetools inspect ghcr.io/mouriya-devops/ci-selftest/$r:latest --format '\''{{json .Image.Config.Labels}}'\''; done; for p in alpha beta; do gh api orgs/mouriya-devops/packages/container/ci-selftest%2F$p --jq '\''[.name,.visibility]|@tsv'\''; done'
== 43607512747
image / parse UNKNOWN STEP 2026-11-14T14:57:07.3051567Z ##[error]images: 'registry.237575.xyz/ci-selftest/beta' is in registry.237575.xyz, other images are in ghcr.io; one run publishes to one registry
image / parse UNKNOWN STEP 2026-11-14T14:57:07.3065118Z ##[error]Process completed with exit code 1.
== 43607514754
image / parse UNKNOWN STEP 2026-11-14T14:57:08.6683635Z ##[error]images: 'ghcr.io/mouriya-s-lab/ci-selftest-alpha' is not a repository under registry.237575.xyz/ or ghcr.io/mouriya-devops/ (no tag or digest)
image / parse UNKNOWN STEP 2026-11-14T14:57:08.6703508Z ##[error]Process completed with exit code 1.
行 2 request · exit 1 · bash -c 'for id in 43607512747 43607514754; do gh run view $id -R mouriya-devops/ci --log-failed | grep -c '\''invalid input images'\''; done'
bash -c 'gh api repos/mouriya-devops/ci/actions/runs/43607510463/jobs --jq '\''.jobs[]|select(.name=="image / publish")|.steps[]|select(.name|test("token|Log in|Push|Move"))|[.name,.conclusion]|@tsv'\''; docker logout ghcr.io >/dev/null 2>&1; for r in alpha beta; do echo "== ghcr.io/mouriya-devops/ci-selftest/$r:latest (anonymous)"; docker buildx imagetools inspect ghcr.io/mouriya-devops/ci-selftest/$r:latest --format '\''{{json .Image.Config.Labels}}'\''; echo; done; for p in alpha beta; do gh api orgs/mouriya-devops/packages/container/ci-selftest%2F$p --jq '\''[.name,.visibility]|@tsv'\''; done'
exit 0 · 5.4s
2
service
结果 2
正例
start
已记录
bash -c 'for id in 43607512747 43607514754; do gh run view $id -R mouriya-devops/ci --json headSha,conclusion --jq '\''["'\''$id'\''",.headSha,.conclusion]|@tsv'\''; done'
exit 0 · 1.2s
2
service
结果 2
正例
log
已记录
bash -c 'for id in 43607512747 43607514754; do echo == $id; gh run view $id -R mouriya-devops/ci --log-failed | grep -E '\''##\[error\]'\'' | cut -c1-260; done'
exit 0 · 6.5s
2
service
结果 2
正例
request
已记录
bash -c 'for id in 43607512747 43607514754; do printf '\''%s '\'' $id; gh run view $id -R mouriya-devops/ci --log-failed | grep -c '\''##\[error\]images: '\''; done'
exit 0 · 4.0s
3
service
结果 3
保持
start
已记录
bash -c 'for id in 43607516782 43607827024; do gh run view $id -R mouriya-devops/ci --json headSha,conclusion --jq '\''["'\''$id'\''",.headSha,.conclusion]|@tsv'\''; done; gh secret list -R mouriya-devops/ci | wc -l'
== 43607512747
image / parse UNKNOWN STEP 2026-11-14T14:57:07.3051567Z ##[error]images: 'registry.237575.xyz/ci-selftest/beta' is in registry.237575.xyz, other images are in ghcr.io; one run publishes to one registry
image / parse UNKNOWN STEP 2026-11-14T14:57:07.3065118Z ##[error]Process completed with exit code 1.
== 43607514754
image / parse UNKNOWN STEP 2026-11-14T14:57:08.6683635Z ##[error]images: 'ghcr.io/mouriya-s-lab/ci-selftest-alpha' is not a repository under registry.237575.xyz/ or ghcr.io/mouriya-devops/ (no tag or digest)
image / parse UNKNOWN STEP 2026-11-14T14:57:08.6703508Z ##[error]Process completed with exit code 1.
行 3 start · exit 0 · bash -c 'for id in 43607516782 43607827024; do gh run view $id -R mouriya-devops/ci --json headSha,conclusion --jq '\''["'\''$id'\''",.headSha,.conclusion]|@tsv'\''; done; gh secret list -R mouriya-devops/ci | wc -l'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #14
摘要
imageworkflow 的images现在也接受ghcr.io/<仓库 owner>/下的仓库:一次运行的全部镜像必须同属一个 registry;发布到 ghcr 时不走 Keycloak,用GITHUB_TOKEN(调用方授予packages: write)登录、推送与回读。registry.237575.xyz/的发布不变。实现说明
parse:逐行判定 registry(registry.237575.xyz或ghcr.io/<github.repository_owner 小写>),混用或越权 owner 报invalid input images;Keycloak secret 只在发布到registry.237575.xyz时必需;新增输出registry。publish:REGISTRY/REGISTRY_USER由parse结果决定;Fetch registry token只对内网 registry 执行,其余步骤用access-token || github.token;ghcr 对尚不存在的包拒发 pull token,视为远端不存在,推送后的回读仍会在推送失败时报错。selftest/image/build.sh按CI_IMAGES构建(最后一段路径即 role),并加org.opencontainers.image.sourcelabel;selftest-image.yml授予packages: write。