From 398adda9309ad6c363de1dd9920e609b6d4e91f3 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Sun, 6 Nov 2022 18:13:59 +0100 Subject: [PATCH] add tag and push image --- scaleway-k8s/tasks/create-build.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/scaleway-k8s/tasks/create-build.yml b/scaleway-k8s/tasks/create-build.yml index 864e689..ad4905f 100644 --- a/scaleway-k8s/tasks/create-build.yml +++ b/scaleway-k8s/tasks/create-build.yml @@ -31,4 +31,22 @@ - name: Pause for build image pause: - prompt: aller au dossier {{ home_dir }}/{{ quarkus_project }}, et exécuter le script build-image.sh \ No newline at end of file + 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