From 0c80992f7d7e5d8cb697977b940e9597946d9b4b Mon Sep 17 00:00:00 2001 From: chenos Date: Tue, 13 Dec 2022 13:37:32 +0800 Subject: [PATCH] fix: update github workflows --- .github/workflows/aliyun-container-registry.yml | 9 +++++++-- .github/workflows/docker-hub.yml | 5 +++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/aliyun-container-registry.yml b/.github/workflows/aliyun-container-registry.yml index 1c8c33d403..fccbbaf9b8 100644 --- a/.github/workflows/aliyun-container-registry.yml +++ b/.github/workflows/aliyun-container-registry.yml @@ -7,16 +7,21 @@ on: - 'develop' paths: - 'packages/**' + - 'docker/nocobase/**' + - 'Dockerfile.acr' + - '.github/workflows/aliyun-container-registry.yml' pull_request: branches: - '**' paths: - - 'docker/nocobase/**' - 'packages/**' + - 'docker/nocobase/**' + - 'Dockerfile.acr' + - '.github/workflows/aliyun-container-registry.yml' jobs: push-acr: - if: github.event.pull_request.head.repo.fork !== true + if: github.event.pull_request.head.repo.fork != true runs-on: ubuntu-latest services: verdaccio: diff --git a/.github/workflows/docker-hub.yml b/.github/workflows/docker-hub.yml index ed6322d716..f1f7232fd5 100644 --- a/.github/workflows/docker-hub.yml +++ b/.github/workflows/docker-hub.yml @@ -4,6 +4,11 @@ on: push: branches: - 'main' + paths: + - 'packages/**' + - 'docker/nocobase/**' + - 'Dockerfile' + - '.github/workflows/docker-hub.yml' jobs: push-docker: