-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (36 loc) · 1.4 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Deploy autoforward and autoconvert programs
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v4
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Deploy
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.VPS_USER }}@${{ secrets.VPS_IP }} << 'EOF'
export HISTFILE=/dev/null
cd autoforward-autoconvert
git checkout main
echo "Pulling changes..."
git pull
echo "Starting..."
ELECTRUM_RPC_USERNAME="user" \
ELECTRUM_RPC_PASSWORD="${{ secrets.ELECTRUM_RPC_PASSWORD }}" \
BITCOIN_WALLET_SEED="${{ secrets.BITCOIN_WALLET_SEED }}" \
MONERO_DAEMON_ADDRESS="${{ secrets.MONERO_DAEMON_ADDRESS }}" \
MONERO_RPC_USERNAME="user" \
MONERO_RPC_PASSWORD="${{ secrets.MONERO_RPC_PASSWORD }}" \
MONERO_WALLET_SEED="${{ secrets.MONERO_WALLET_SEED }}" \
MONERO_WALLET_PASSWORD="${{ secrets.MONERO_WALLET_PASSWORD }}" \
MONERO_WALLET_HEIGHT="${{ secrets.MONERO_WALLET_HEIGHT }}" \
KRAKEN_API_KEY="${{ secrets.KRAKEN_API_KEY }}" \
KRAKEN_API_SECRET="${{ secrets.KRAKEN_API_SECRET }}" \
docker compose up -d --build
EOF