@ -58,23 +58,23 @@
- name : Ensure lottieconverter is present when self-building
git:
repo : "{{ matrix_ lottieconverter_docker_repo }}"
dest : "{{ matrix_ lottieconverter_docker_src_files_path }}"
repo : "{{ matrix_ telegram_ lottieconverter_docker_repo }}"
dest : "{{ matrix_ telegram_ lottieconverter_docker_src_files_path }}"
force : "yes"
register : matrix_ lottieconverter_git_pull_results
when : "matrix_ lottieconverter_container_self_build|bool and matrix_mautrix_telegram_container_self_build|bool"
register : matrix_ telegram_ lottieconverter_git_pull_results
when : "matrix_ telegram_ lottieconverter_container_self_build|bool and matrix_mautrix_telegram_container_self_build|bool"
- name : Ensure lottieconverter Docker image is built
docker_image:
name : "{{ matrix_ lottieconverter_docker_image }}"
name : "{{ matrix_ telegram_ lottieconverter_docker_image }}"
source : build
force_source : "{{ matrix_ lottieconverter_git_pull_results.changed if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
force : "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_ lottieconverter_git_pull_results.changed }}"
force_source : "{{ matrix_ telegram_ lottieconverter_git_pull_results.changed if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
force : "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_ telegram_ lottieconverter_git_pull_results.changed }}"
build:
dockerfile : Dockerfile
path : "{{ matrix_ lottieconverter_docker_src_files_path }}"
path : "{{ matrix_ telegram_ lottieconverter_docker_src_files_path }}"
pull : yes
when : "matrix_ lottieconverter_container_self_build|bool and matrix_lottieconverter_git_pull_results.changed and matrix_mautrix_telegram_container_self_build|bool"
when : "matrix_ telegram_ lottieconverter_container_self_build|bool and matrix_telegram _lottieconverter_git_pull_results.changed and matrix_mautrix_telegram_container_self_build|bool"
- name : Ensure matrix-mautrix-telegram repository is present when self-building
git:
@ -87,7 +87,7 @@
- name : Ensure TARGETARCH is beeing masked
command : sed -i "3s/ARG/#ARG/" "{{ matrix_mautrix_telegram_docker_src_files_path }}/Dockerfile"
when : "matrix_ lottieconverter_container_self_build_mask_arch|bool"
when : "matrix_ telegram_ lottieconverter_container_self_build_mask_arch|bool"
- name : Ensure matrix-mautrix-telegram Docker image is built
docker_image:
@ -98,13 +98,13 @@
build:
dockerfile : Dockerfile
path : "{{ matrix_mautrix_telegram_docker_src_files_path }}"
pull : "{{ not matrix_ lottieconverter_container_self_build_mask_arch|bool }}"
pull : "{{ not matrix_ telegram_ lottieconverter_container_self_build_mask_arch|bool }}"
when : "matrix_mautrix_telegram_container_self_build|bool and matrix_mautrix_telegram_git_pull_results.changed"
# Unmask so no git changes are beeing detected
- name : Ensure TARGETARCH is beeing unmasked
command : sed -i "3s/#ARG/ARG/" "{{ matrix_mautrix_telegram_docker_src_files_path }}/Dockerfile"
when : "matrix_ lottieconverter_container_self_build_mask_arch|bool"
when : "matrix_ telegram_ lottieconverter_container_self_build_mask_arch|bool"
- name : Check if an old database file already exists
stat: