Explorar el Código

Masked TARGETARCH via docker.build.arg directive

pull/1183/head
Toorero hace 4 años
padre
commit
b3793f3595
Se han modificado 1 ficheros con 2 adiciones y 9 borrados
  1. +2
    -9
      roles/matrix-bridge-mautrix-telegram/tasks/setup_install.yml

+ 2
- 9
roles/matrix-bridge-mautrix-telegram/tasks/setup_install.yml Ver fichero

@@ -85,10 +85,6 @@
when: "matrix_mautrix_telegram_container_self_build|bool"
ignore_errors: yes

- name: Ensure TARGETARCH is beeing masked
command: sed -i "3s/ARG/#ARG/" "{{ matrix_mautrix_telegram_docker_src_files_path }}/Dockerfile"
when: "matrix_telegram_lottieconverter_container_self_build_mask_arch|bool"
- name: Ensure matrix-mautrix-telegram Docker image is built
docker_image:
name: "{{ matrix_mautrix_telegram_docker_image }}"
@@ -99,13 +95,10 @@
dockerfile: Dockerfile
path: "{{ matrix_mautrix_telegram_docker_src_files_path }}"
pull: "{{ not matrix_telegram_lottieconverter_container_self_build_mask_arch|bool }}"
args:
TARGETARCH: ""
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_telegram_lottieconverter_container_self_build_mask_arch|bool"
- name: Check if an old database file already exists
stat:
path: "{{ matrix_mautrix_telegram_base_path }}/mautrix-telegram.db"


Cargando…
Cancelar
Guardar