fix: ssh secret key
This commit is contained in:
parent
122b0e6f51
commit
d608a9645c
@ -81,6 +81,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Deploy to Staging Servers
|
- name: Deploy to Staging Servers
|
||||||
run: |
|
run: |
|
||||||
|
# Configura SSH
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||||
|
chmod 600 ~/.ssh/id_rsa
|
||||||
|
|
||||||
# Deploy no Servidor 1
|
# Deploy no Servidor 1
|
||||||
ssh -o StrictHostKeyChecking=no ubuntu@141.148.162.114 << 'EOF'
|
ssh -o StrictHostKeyChecking=no ubuntu@141.148.162.114 << 'EOF'
|
||||||
# Para o container atual se existir
|
# Para o container atual se existir
|
||||||
@ -132,6 +137,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Deploy to Production Servers
|
- name: Deploy to Production Servers
|
||||||
run: |
|
run: |
|
||||||
|
# Configura SSH
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||||
|
chmod 600 ~/.ssh/id_rsa
|
||||||
|
|
||||||
# Deploy no Servidor 1 (com NGINX)
|
# Deploy no Servidor 1 (com NGINX)
|
||||||
ssh -o StrictHostKeyChecking=no ubuntu@141.148.162.114 << 'EOF'
|
ssh -o StrictHostKeyChecking=no ubuntu@141.148.162.114 << 'EOF'
|
||||||
# Para o container atual se existir
|
# Para o container atual se existir
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user