Compare commits

...

2 Commits

2 changed files with 33 additions and 12 deletions

View File

@ -1,14 +1,35 @@
---
- name: Clone repositories
when: item.value.build is defined
git:
repo: "{{ item.value.build.repository }}"
dest: /tmp/{{ item.key }}
version: "{{ item.value.build.version }}"
accept_hostkey: true
loop: "{{ omni_compose_apps | dict2items }}"
loop_control:
label: "{{ item.key }}"
- name: Download source
block:
- name: Clone repositories
when: item.value.build is defined
git:
repo: "{{ item.value.build.repository }}"
dest: /tmp/{{ item.key }}
version: "{{ item.value.build.version }}"
accept_hostkey: true
loop: "{{ omni_compose_apps | dict2items }}"
loop_control:
label: "{{ item.key }}"
rescue:
- name: Remove existing repository downloads
file:
path: /tmp/{{ item.key }}
state: absent
loop: "{{ omni_compose_apps | dict2items }}"
loop_control:
label: "{{ item.key }}"
- name: Clone repositories
when: item.value.build is defined
git:
repo: "{{ item.value.build.repository }}"
dest: /tmp/{{ item.key }}
version: "{{ item.value.build.version }}"
accept_hostkey: true
loop: "{{ omni_compose_apps | dict2items }}"
loop_control:
label: "{{ item.key }}"
- name: Build image
when: item.value.build is defined

View File

@ -93,7 +93,7 @@ omni_compose_apps:
scipio:
build:
repository: git@github.com:tjyork/Scipio.git
version: 1.1.1
version: 1.1.2
datastore: /appdata/scipio
account:
name: mech_scipio
@ -106,6 +106,6 @@ omni_compose_apps:
networks:
main: 192.168.106.0/24
versions:
default: 1.1.1
default: 1.1.2
database: "10"
cache: "6.2"