Repository navigation
fix(ci): 修复 JDK 21 双架构构建与发布条件 - #2
Merged
Merged
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
目的
no match for platform in manifest。push到master时登录仓库并发布镜像。核心变动
.github/workflows/docker-image.yml、jdk/Dockerfile-21、README.md。linux/amd64,linux/arm64,移除 riscv64 和重复的 arm64/v8;两次登录及两次镜像推送统一受push && refs/heads/master条件限制。type=gha的base-jdk-21/base-jdk-21-allscope,mode=max保存中间层;pull: true每次检查上游基础镜像更新。eclipse-temurin:21-jdk-noble跟随 JDK 21 更新,并将 Ubuntu 固定在与流媒体依赖一致的 24.04 系列。02cd84f(平台与配方)、35aa9ce(发布条件)、9b184d3(构建缓存);完整 CI 待验证。设计与测试目标
README.md的基础镜像及架构说明。测试结果
actionlint .github/workflows/docker-image.yml;git diff --check;两个 Dockerfile 的docker buildx build --check --platform linux/arm64;docker buildx imagetools inspect eclipse-temurin:21-jdk-noble --raw;docker buildx build --platform linux/arm64 --load -t jetlinks-ci/base-jdk-21:arm64-noble-check -f jdk/Dockerfile-21 jdk;容器内运行java -version、tshark --version、ssh -V;keytool -list -cacerts -storepass changeit。9b184d37100a0f481431cebac0ca2dd975523f75,tree64eb66911613927610f8724fc9236391b96dcc5f。ARM64 镜像证据对应的 FROM 与安装命令未变,复用配方及运行检查;新增缓存与上游拉取行为由最终 CI 单独验证。文档同步情况
README.md。风险与说明
jetlinks/base-jdk-21为基础,master 推送时先发布基础镜像再构建扩展镜像。