From 92ff757efc966c6150815a956392caf07e46ed32 Mon Sep 17 00:00:00 2001 From: qwqcode Date: Thu, 28 Dec 2023 20:42:16 +0800 Subject: [PATCH] chore: fix docker build ci workflow --- .github/workflows/build.yml | 5 ++++- .github/workflows/test-docs.yml | 9 ++++----- .github/workflows/test-frontend.yml | 7 +++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b878c0545..b4d4a8aef 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,7 +51,10 @@ jobs: # Parallel build the multi-arch docker image strategy: matrix: - target: ["linux/amd64", "linux/arm64"] + # since docker push actions will override the previous images, + # so need to build `linux/amd64` and push first, + # then build `linux/amd64` twice with other archs (build very slow so keep it last). + target: ["linux/amd64", "linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6"] with: version: ${{ needs.tagging.outputs.version }} dry_run: ${{ inputs.dry_run || false }} diff --git a/.github/workflows/test-docs.yml b/.github/workflows/test-docs.yml index e0e534361..dcfc7dcb1 100644 --- a/.github/workflows/test-docs.yml +++ b/.github/workflows/test-docs.yml @@ -1,12 +1,11 @@ name: Test Docs on: - pull_request: - paths: - - "docs/**" push: - paths: - - "docs/**" + paths: ['docs/**'] + pull_request: + paths: ['docs/**'] + branches: ['!release/*'] jobs: test_docs: diff --git a/.github/workflows/test-frontend.yml b/.github/workflows/test-frontend.yml index d6c897f68..745d53b29 100644 --- a/.github/workflows/test-frontend.yml +++ b/.github/workflows/test-frontend.yml @@ -2,11 +2,10 @@ name: Test Frontend on: push: - paths: - - 'ui/**' + paths: ['ui/**'] pull_request: - paths: - - 'ui/**' + paths: ['ui/**'] + branches: ['!release/*'] jobs: test_ui: