add tag and push image

This commit is contained in:
Valentin CZERYBA 2022-11-06 18:13:59 +01:00
parent 371ee06a41
commit 398adda930

View File

@ -31,4 +31,22 @@
- name: Pause for build image - name: Pause for build image
pause: pause:
prompt: aller au dossier {{ home_dir }}/{{ quarkus_project }}, et exécuter le script build-image.sh prompt: aller au dossier {{ home_dir }}/{{ quarkus_project }}, et exécuter le script build-image.sh
- name: Get quarkus image
docker_image_info:
name: quarkus-native
register: result
- name: Check quarkus image
assert:
that:
- result.images | length == 1
- name: Tag and push to custom registry
docker_image:
name: quarkus-native
repository: registry.valczeryba.ovh:5000/quarkus-native
tag: latest
push: yes
source: local