From 83053fff0f7dc1b02b2a6375c29eb9329581559d Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Sat, 8 Jun 2024 23:29:51 +0200 Subject: [PATCH] Use Git commit as tag instead of latest. Remove commit annotation. Reason is Podman cannot be forced to change the annotation to a new Git commit if no image layer changed due to the new commit, even when setting a different image tag for the new build. --- tasks/main.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 6b44e07..9fd5535 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -16,13 +16,10 @@ - name: Build {{ image.name }} image containers.podman.podman_image: - name: "{{ image.name }}" + name: "{{ image.name }}:{{ commit }}" path: "{{ image.repo_url }}" - force: true build: force_rm: true - annotation: - git_commit: "{{ commit }}" become: true register: result