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