Skip to content

Merge pull request #9 from MAGICGrants/scripts #4

Merge pull request #9 from MAGICGrants/scripts

Merge pull request #9 from MAGICGrants/scripts #4

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="${{ vars.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