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.

This commit is contained in:
yohan 2024-06-08 23:29:51 +02:00
parent bbf9d3c0c5
commit 83053fff0f

View File

@ -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