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:
parent
bbf9d3c0c5
commit
83053fff0f
@ -16,13 +16,10 @@
|
|||||||
|
|
||||||
- name: Build {{ image.name }} image
|
- name: Build {{ image.name }} image
|
||||||
containers.podman.podman_image:
|
containers.podman.podman_image:
|
||||||
name: "{{ image.name }}"
|
name: "{{ image.name }}:{{ commit }}"
|
||||||
path: "{{ image.repo_url }}"
|
path: "{{ image.repo_url }}"
|
||||||
force: true
|
|
||||||
build:
|
build:
|
||||||
force_rm: true
|
force_rm: true
|
||||||
annotation:
|
|
||||||
git_commit: "{{ commit }}"
|
|
||||||
become: true
|
become: true
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user