From 22e8a80690747b792b70f96a0e332906f0e65e97 Mon Sep 17 00:00:00 2001 From: Jusong Yu Date: Fri, 22 Sep 2023 10:29:53 +0200 Subject: [PATCH] Devops: Loosen trigger conditions for Docker build CI workflow (#6131) The docker build workflow was only activated when changes were made to either the `.docker` directory or `.github/workflows/docker*.yaml` files. However, changes in the `aiida` package could also break the build and so could pass by unnoticed. The trigger conditions are changed to instead trigger always except for changes to the `tests` and `docs` directories. Cherry-pick: 1b5b6692f2f9ab8b13d3d2469f854838364b4e38 --- .github/workflows/docker.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 979823557..0fd6c50a0 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -3,17 +3,17 @@ name: Build, test and push Docker Images on: pull_request: - paths: - - .docker/** - - .github/workflows/docker-*.yml + paths-ignore: + - "docs/**" + - "tests/**" push: branches: - main tags: - "v*" - paths: - - .docker/** - - .github/workflows/docker-*.yml + paths-ignore: + - "docs/**" + - "tests/**" workflow_dispatch: # https://docs.github.com/en/actions/using-jobs/using-concurrency