diff --git a/.github/workflows/aliyun-container-registry.yml b/.github/workflows/aliyun-container-registry.yml index 1c8c33d40..fccbbaf9b 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 ed6322d71..f1f7232fd 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: