From 9a9a1d2b28359b6ea2c43026a25095e6a37b466b Mon Sep 17 00:00:00 2001 From: Jusong Yu Date: Thu, 21 Sep 2023 21:41:45 +0200 Subject: [PATCH] Docker stack build CI action enabled for any changes The docker build CI was only activated when `.docker` or `.github/workflows/docker*.yaml` are changed. It prevent the build check from changes in src code which may potentially break the docker stack build. For example when CLI interface for `quicksetup` is changed or the interface for `computer/code` setup is changed, since the docker stack builds relies on running these commands inside. We use paths-ignore to ignore the trigger of docker stack build when changes are from `docs/` or `tests/`. --- .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 979823557e..0fd6c50a0e 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