27 lines
912 B
YAML
27 lines
912 B
YAML
name: Deploy
|
|
run-name: Deploy
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: echo "🏗️ Creating secrets..."
|
|
- name: Execute Remote SSH Commands
|
|
uses: appleboy/ssh-action@v1.0.3
|
|
with:
|
|
host: ${{ secrets.SSH_HOST }}
|
|
username: ${{ secrets.SSH_USERNAME }}
|
|
password: ${{ secrets.SSH_PASSWORD }}
|
|
port: 22
|
|
script: |
|
|
cd ${{ secrets.DEPLOY_DIRECTORY }}
|
|
mkdir secrets
|
|
cd secrets
|
|
echo "${{ secrets.BESZEL_AGENT_KEY }}" > beszel_agent_key.txt
|
|
echo "${{ secrets.BESZEL_AGENT_TOKEN }}" > beszel_agent_token.txt
|
|
echo "${{ secrets._GITEA_RUNNER_REGISTRATION_TOKEN }}" > gitea_runner_registration_token.txt
|
|
echo "${{ secrets.VAULTWARDEN_ADMIN_TOKEN }}" > vaultwarden_admin_token.txt
|
|
- run: echo "✅ Secrets created"
|