Skip to content

Merge pull request #20 from MAGICGrants/get-bids-fix #14

Merge pull request #20 from MAGICGrants/get-bids-fix

Merge pull request #20 from MAGICGrants/get-bids-fix #14

Workflow file for this run

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/[email protected]
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