From 0eea215be9896416896ffd8442a5087cb6fb7221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E7=AB=8B=E5=89=91?= Date: Mon, 25 Aug 2025 11:18:50 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=B5=8B=E8=AF=95=20northflank=20?= =?UTF-8?q?=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/push.yaml | 14 ++++++++++++-- docker-bake.hcl | 38 +------------------------------------ 2 files changed, 13 insertions(+), 39 deletions(-) diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index b59b316..16827c6 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -6,10 +6,12 @@ on: push: branches: - main + - develop pull_request: branches: - main + - develop concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -33,7 +35,7 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Log in to GitHub Container Registry - if: github.event_name != 'pull_request' + # if: github.event_name != 'pull_request' uses: docker/login-action@v3 with: registry: ghcr.io @@ -70,8 +72,16 @@ jobs: context: . platforms: linux/amd64,linux/arm64 target: toolchain - push: ${{ github.event_name != 'pull_request' }} + # push: ${{ github.event_name != 'pull_request' }} + push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=registry,ref=ghcr.io/${{ github.repository }}:cache cache-to: type=registry,ref=ghcr.io/${{ github.repository }}:cache,mode=max + + - name: Trigger preview flow + run: curl -X GET ${{ secrets.NF_WEBHOOK_PREVIEW }}?image_tag=${{ steps.meta.outputs.version }} + + - name: Trigger release flow + if: github.event_name != 'pull_request' + run: curl -X GET ${{ secrets.NF_WEBHOOK }}?image_tag=${{ steps.meta.outputs.version }} diff --git a/docker-bake.hcl b/docker-bake.hcl index b982620..93ba786 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -1,5 +1,5 @@ group "default" { - targets = ["toolchain", "test-env", "test-node-canvas", "test-cmake", "test-emscripten", "test-playwright", "test-chinese-font"] + targets = ["toolchain"] } target "toolchain" { @@ -7,39 +7,3 @@ target "toolchain" { platforms = ["linux/amd64", "linux/arm64"] target = "toolchain" } - -target "test-env" { - dockerfile = "Dockerfile" - platforms = ["linux/amd64", "linux/arm64"] - target = "test-env" -} - -target "test-node-canvas" { - dockerfile = "Dockerfile" - platforms = ["linux/amd64", "linux/arm64"] - target = "test-node-canvas" -} - -target "test-cmake" { - dockerfile = "Dockerfile" - platforms = ["linux/amd64", "linux/arm64"] - target = "test-cmake" -} - -target "test-emscripten" { - dockerfile = "Dockerfile" - platforms = ["linux/amd64", "linux/arm64"] - target = "test-emscripten" -} - -target "test-playwright" { - dockerfile = "Dockerfile" - platforms = ["linux/amd64", "linux/arm64"] - target = "test-playwright" -} - -target "test-chinese-font" { - dockerfile = "Dockerfile" - platforms = ["linux/amd64", "linux/arm64"] - target = "test-chinese-font" -} \ No newline at end of file