fix ssh key deployment
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Robert Kaussow 2020-09-30 23:21:16 +02:00
parent 3439ae090c
commit 1538f7b271
Signed by: xoxys
GPG Key ID: 65362AE74AF98B61
2 changed files with 4 additions and 3 deletions

View File

@ -25,10 +25,10 @@
- name: Write SSH private key
copy:
content: "{{ inst.sshkey | default(droneci_autoscaler_sshkey) }}"
content: "{{ __droneci_autoscaler_sshkey }}"
dest: "{{ __droneci_autoscaler_workdir }}/ssh_key"
mode: 0600
when: __droneci_autoscaler_sshkey
when: __droneci_autoscaler_sshkey | bool
no_log: True
- name: Generate SSH key pair if missing

View File

@ -69,7 +69,6 @@ services:
{% if droneci_autoscaler_memory_reservation is defined %}
mem_reservation: {{ droneci_autoscaler_memory_reservation }}
{% endif %}
{% if droneci_autoscaler_networks | default([]) | length > 0 %}
{% if droneci_autoscaler_volumes | default([]) | rejectattr("bind") | list | length > 0 %}
volumes:
@ -77,6 +76,8 @@ volumes:
{{ volume.name }}:
{% endfor %}
{% endif %}
{% if droneci_autoscaler_networks | default([]) | length > 0 %}
networks:
{% for network in droneci_autoscaler_networks %}
{{ network.name }}: