Skip to content
Snippets Groups Projects
Commit 78f04d16 authored by Théo - Le Filament's avatar Théo - Le Filament
Browse files

fix: copy custom SSH config in container only if exists

parent 09a7451a
Branches
No related tags found
No related merge requests found
...@@ -182,6 +182,7 @@ ...@@ -182,6 +182,7 @@
- "odoo_config" - "odoo_config"
- "odoo_config_dockerfile" - "odoo_config_dockerfile"
vars: vars:
template_custom_ssh_config: "{{ git_ssh_private_keys is defined }}"
template_odoo_instance: "{{ odoo_instance }}" template_odoo_instance: "{{ odoo_instance }}"
template_odoo_instance_setup: "{{ odoo_instance_setup }}" template_odoo_instance_setup: "{{ odoo_instance_setup }}"
ansible.builtin.template: ansible.builtin.template:
......
...@@ -9,8 +9,10 @@ LABEL stage=builder ...@@ -9,8 +9,10 @@ LABEL stage=builder
USER root USER root
{% if template_custom_ssh_config %}
# Install GitLab private keys # Install GitLab private keys
COPY ./dot_ssh/* /root/.ssh COPY ./dot_ssh/* /root/.ssh
{% endif %}
# Add addons. # Add addons.
ARG SAVE_COMMITS_FILENAME='custom_addons' ARG SAVE_COMMITS_FILENAME='custom_addons'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment