🐥 ssh-action-deploy #166
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Criptografar IP da VPS | |
on: | |
workflow_dispatch: # Aciona manualmente ou ajusta para on: [push] para disparar com push | |
jobs: | |
encrypt-ip: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Criptografar IP da VPS | |
run: | | |
# Ajuste o comando conforme necessário para extrair o IP da VPS | |
IP="${{ secrets.IP }}" | |
# Criptografar o IP usando AES e salvar em um arquivo | |
echo -n "$IP" | openssl enc -aes-256-cbc -a -salt -pass env:AES_KEY > ip_encrypted.txt | |
# Exibir o arquivo criptografado (opcional) | |
cat ip_encrypted.txt | |