From 36d4d1f66e6b5b58d3f58bc32a44673458294b5c Mon Sep 17 00:00:00 2001 From: Sweeny <26363103+Sweeny42@users.noreply.github.com> Date: Tue, 15 Mar 2022 23:50:06 +0000 Subject: [PATCH] Add check for ma1sd repo changes on image self build Adding when clause to ma1sd image build task to avoid image being built if not needed. --- roles/matrix-ma1sd/tasks/setup_install.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/matrix-ma1sd/tasks/setup_install.yml b/roles/matrix-ma1sd/tasks/setup_install.yml index 6fc6902a..b8cc64d6 100644 --- a/roles/matrix-ma1sd/tasks/setup_install.yml +++ b/roles/matrix-ma1sd/tasks/setup_install.yml @@ -87,6 +87,7 @@ shell: "DOCKER_BUILDKIT=1 ./gradlew dockerBuild" args: chdir: "{{ matrix_ma1sd_docker_src_files_path }}" + when: matrix_ma1sd_git_pull_results.changed - name: Ensure ma1sd Docker image is tagged correctly docker_image: