diff --git a/.github/workflows/test-build-publish.yaml b/.github/workflows/test-build-publish.yaml index 53ab8a3a7c..a36178ab8e 100644 --- a/.github/workflows/test-build-publish.yaml +++ b/.github/workflows/test-build-publish.yaml @@ -120,6 +120,7 @@ jobs: build-images: needs: test-version-packages + if: github.event.pull_request.head.repo.fork == false runs-on: ubuntu-latest permissions: @@ -158,7 +159,7 @@ jobs: uses: docker/metadata-action@v5 with: images: | - ${{ env.GITHUB_CR }}/${{ github.event.pull_request.head.repo.full_name }}/${{ matrix.name }} + ${{ env.GITHUB_CR }}/${{ github.repository }}/${{ matrix.name }} - name: Build and push Docker image uses: docker/build-push-action@v6 diff --git a/docs/docs/contribution/ci.dio b/docs/docs/contribution/ci.dio index cbedb66dc1..1e21b004d8 100644 --- a/docs/docs/contribution/ci.dio +++ b/docs/docs/contribution/ci.dio @@ -1,6 +1,6 @@ - + @@ -13,14 +13,17 @@ + + + - + - + @@ -40,25 +43,28 @@ - + - - + + - + - + - + + + + diff --git a/docs/docs/contribution/ci.png b/docs/docs/contribution/ci.png index 35edab3d07..63244ca55c 100644 Binary files a/docs/docs/contribution/ci.png and b/docs/docs/contribution/ci.png differ diff --git a/docs/docs/contribution/dev.md b/docs/docs/contribution/dev.md index 865580090c..5f2b3303d2 100644 --- a/docs/docs/contribution/dev.md +++ b/docs/docs/contribution/dev.md @@ -193,4 +193,7 @@ pnpm devenv:stop ![CI流程](./ci.png) +注意: + +1. 针对来自非fork项目的PR,CI不会构建镜像以及更新scow-vagrant diff --git a/docs/docs/contribution/index.md b/docs/docs/contribution/index.md index dc9069a3ee..c9c0f49206 100644 --- a/docs/docs/contribution/index.md +++ b/docs/docs/contribution/index.md @@ -11,6 +11,10 @@ title: 贡献指南 ![贡献流程](process.png) +注意事项: + +1. 对于来自fork的仓库的PR,仓库的CI将会对您的代码运行测试,但是不会构建镜像。为了方便您自己以及团队的测试工作,我们推荐您首先在您的仓库中,发起一个您的分支到您仓库的master分支的PR。这个过程的CI将会运行在您的仓库中,将会构建镜像并上传到您的仓库的GitHub Container Registry中,您以及我们团队可以使用这些镜像进行测试。 + ## 开源协议 OpenSCOW在[木兰宽松许可证,第2版 (MulanPSL-2.0)](https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwir0N_4hPuIAxUinK8BHT7XBfIQFnoECBQQAQ&url=https%3A%2F%2Fspdx.org%2Flicenses%2FMulanPSL-2.0.html&usg=AOvVaw2pyvwh8sqZpV0XmHiRXQje&opi=89978449)下开源。您贡献的代码同样会在此协议下开源。 diff --git a/docs/docs/contribution/process.dio b/docs/docs/contribution/process.dio index 8ea7907cbd..c5f5da57ab 100644 --- a/docs/docs/contribution/process.dio +++ b/docs/docs/contribution/process.dio @@ -1,92 +1,98 @@ - + - + - - + + - + - - + + + + + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + diff --git a/docs/docs/contribution/process.png b/docs/docs/contribution/process.png index c10fe0a9a0..0bb2e06336 100644 Binary files a/docs/docs/contribution/process.png and b/docs/docs/contribution/process.png differ