Masked TARGETARCH via docker.build.arg directive
This commit is contained in:
parent
3a28100131
commit
b3793f3595
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user