This commit is contained in:
Mangiang 2021-11-02 14:56:16 -04:00
parent 60dfa646cd
commit eddf9a7139
No known key found for this signature in database
GPG Key ID: DAE9B92A692CD55C

View File

@ -28,7 +28,6 @@ steps:
DEPLOY_PRIVATE_KEY:
from_secret: deploy_ssh_key
commands:
- printf "[ssh_connection]\ncontrol_path_dir=/dev/shm/ansible_control_path\nssh_args=''" > /etc/ansible/ansible.cfg
- sed -i 's/{{ SPT_ITEMS_HOSTNAME }}/'"$SPT_ITEMS_HOSTNAME"'/g' ./items/frontend/.env.example
- mv ./items/frontend/.env.example ./items/frontend/.env
- echo "$DEPLOY_PRIVATE_KEY" > private.key && chmod 600 private.key
@ -59,6 +58,11 @@ steps:
branch:
- development
- name: add ansible config
image: ubuntu:impish
commands:
- printf "[ssh_connection]\ncontrol_path_dir=/dev/shm/ansible_control_path\nssh_args=''" > /etc/ansible/ansible.cfg
- name: apply ansible playbook
image: plugins/ansible:3
settings: