From 4ff59beba462dc24480c1466e994f7c8127fab5e Mon Sep 17 00:00:00 2001 From: Cameron Hyde Date: Tue, 17 Dec 2024 15:50:02 +1000 Subject: [PATCH] Fix docker build workflow --- .github/workflows/docker-build.yml | 4 ++-- ansible/roles/galaxy_labs_engine/tasks/main.yml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 715c406..6be0bc1 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -36,10 +36,10 @@ jobs: run: | if git diff --name-only "${{ github.event.workflow_run.head_branch }}" | grep -q -e 'Dockerfile' -e 'requirements.txt'; then echo "Dockerfile or requirements.txt changed" - echo "::set-output name=updated::true" + echo echo "updated=true" >> $GITHUB_OUTPUT else echo "Dockerfile or requirements.txt not changed" - echo "::set-output name=updated::false" + echo echo "updated=false" >> $GITHUB_OUTPUT fi - name: Set up Docker Buildx diff --git a/ansible/roles/galaxy_labs_engine/tasks/main.yml b/ansible/roles/galaxy_labs_engine/tasks/main.yml index e4950cd..66776ff 100644 --- a/ansible/roles/galaxy_labs_engine/tasks/main.yml +++ b/ansible/roles/galaxy_labs_engine/tasks/main.yml @@ -8,6 +8,8 @@ ansible.builtin.docker_image: name: "{{ labs_engine_docker_image }}" source: pull + force_source: yes # Ensures it re-checks the remote registry + state: present tags: update - name: clone git repository for galaxy-labs-engine