This commit is contained in:
Mangiang 2021-11-02 14:15:57 -04:00
parent 7c93962414
commit 2461e7d5e9
No known key found for this signature in database
GPG Key ID: DAE9B92A692CD55C

View File

@ -28,6 +28,7 @@ steps:
DEPLOY_PRIVATE_KEY: DEPLOY_PRIVATE_KEY:
from_secret: deploy_ssh_key from_secret: deploy_ssh_key
commands: commands:
- printf "[ssh_connection]\ncontrol_path_dir=/dev/shm/ansible_control_path" > ~/.ansible.cfg
- sed -i 's/{{ SPT_ITEMS_HOSTNAME }}/'"$SPT_ITEMS_HOSTNAME"'/g' ./items/frontend/.env.example - sed -i 's/{{ SPT_ITEMS_HOSTNAME }}/'"$SPT_ITEMS_HOSTNAME"'/g' ./items/frontend/.env.example
- mv ./items/frontend/.env.example ./items/frontend/.env - mv ./items/frontend/.env.example ./items/frontend/.env
- echo "$DEPLOY_PRIVATE_KEY" > private.key && chmod 600 private.key - echo "$DEPLOY_PRIVATE_KEY" > private.key && chmod 600 private.key
@ -79,8 +80,6 @@ steps:
from_secret: deploy_path from_secret: deploy_path
ANSIBLE_DEBUG: true ANSIBLE_DEBUG: true
PLUGIN_ANSIBLE_DEBUG: true PLUGIN_ANSIBLE_DEBUG: true
ANSIBLE_CONFIG: "[ssh_connection]\ncontrol_path_dir=/dev/shm/ansible_control_path"
PLUGIN_ANSIBLE_CONFIG: "[ssh_connection]\ncontrol_path_dir=/dev/shm/ansible_control_path"
when: when:
branch: branch:
- master - master