支持Github Actions 自动构建 Docker File 自动上传到 Github pkg#62
支持Github Actions 自动构建 Docker File 自动上传到 Github pkg#62KyoSakuyo wants to merge 21 commits intopacexy:mainfrom
Conversation
|
Someone is attempting to deploy a commit to a Personal Account owned by @pacexy on Vercel. @pacexy first needs to authorize it. |
|
Hi @KyoSakuyo 最近准备把之前遗留的PR都合了,有什么需要帮助的吗 |
There was a problem hiding this comment.
Pull Request Overview
This PR adds GitHub Actions support for automated Docker image building and publishing to GitHub Container Registry (ghcr.io). The changes enable continuous integration that builds Docker images on pushes to main branch and tags, then publishes them to GitHub Packages.
- Adds GitHub Actions workflow for Docker image CI/CD
- Updates Dockerfile to use specific pnpm version and non-frozen lockfile installation
- Modifies .npmrc configuration to enable shameful hoisting and relax dependency constraints
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/docker-image.yml | New GitHub Actions workflow for building and pushing Docker images to GitHub Container Registry |
| Dockerfile | Updates pnpm configuration to use specific version and non-frozen lockfile installation |
| .npmrc | Enables shameful hoisting and relaxes peer dependency constraints for Docker builds |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| RUN pnpm i --frozen-lockfile | ||
| RUN corepack prepare pnpm@7.26.3 --activate | ||
|
|
||
| RUN pnpm install --no-frozen-lockfile |
There was a problem hiding this comment.
Using --no-frozen-lockfile in Docker builds can lead to non-reproducible builds and potential security vulnerabilities. Consider using --frozen-lockfile for production Docker images to ensure consistent dependency versions.
| RUN pnpm install --no-frozen-lockfile | |
| RUN pnpm install --frozen-lockfile |
支持Github Actions 自动构建 Docker File 自动上传到 Github pkg