diff --git a/.github/workflows/build-and-publish-image.yml b/.github/workflows/build-and-publish-image.yml index 04741e9c8..7d0014dc2 100644 --- a/.github/workflows/build-and-publish-image.yml +++ b/.github/workflows/build-and-publish-image.yml @@ -7,11 +7,16 @@ name: Build and publish Docker image on: workflow_dispatch: + push: + branches: ["main","devel"] + paths: + - '.github/workflows/build-and-publish-image.yml' pull_request: branches: ["main","devel"] types: [closed] paths: - '.github/workflows/build-and-publish-image.yml' + - '.devcontainer/devcontainer.json' - 'Dockerfile' - 'reinstall-cmake.sh' - 'VERSION' @@ -28,7 +33,9 @@ jobs: build-and-push-image: if: | github.event_name == 'workflow_dispatch' || - (github.event_name == 'pull_request' && github.event.pull_request.merged == true) + github.event_name == 'push' || + (github.event_name == 'pull_request' && + github.event.pull_request.merged == true) runs-on: ubuntu-latest steps: