Merge pull request #20 from MAGICGrants/get-bids-fix #14
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: 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 |