53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
# create folder build
|
|
|
|
- name: git archive local
|
|
local_action:
|
|
module: git
|
|
repo: "https://{{ git_username | urlencode }}:{{ git_password | urlencode }}@git.valczeryba.ovh/v4l3n71n/{{ quarkus_project }}.git"
|
|
dest: "/home/valentin/src/"
|
|
archive: "/tmp/{{ quarkus_project }}.tar.gz"
|
|
force: yes
|
|
update: yes
|
|
when: "quarkus_project is defined"
|
|
|
|
- name: Create directory
|
|
file:
|
|
path: "{{ home_dir }}/{{ quarkus_project }}"
|
|
state: directory
|
|
when: "quarkus_project is defined"
|
|
|
|
|
|
- name: Extract covas quarkus
|
|
unarchive:
|
|
src: "/tmp/{{ quarkus_project }}.tar.gz"
|
|
dest: "{{ home_dir }}/{{ quarkus_project }}"
|
|
when: "quarkus_project is defined"
|
|
|
|
|
|
- name: Template env file
|
|
template:
|
|
src: "env-build.j2"
|
|
dest: "{{ home_dir }}/{{ quarkus_project }}/.env"
|
|
|
|
- name: Pause for build image
|
|
pause:
|
|
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
|