forked from crtahlin/swarm_connect
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Summary
Add x402 environment configuration for main branch deployments, analogous to what was done for dev branch in #53 and #54.
Prerequisites: Test x402 on dev branch thoroughly before applying to main.
Current State
Dev branch (staging) has:
- Environment variables configured via GitHub
stagingenvironment - Dockerfile upgraded to Python 3.10 (Upgrade Docker to Python 3.10+ for x402 SDK compatibility #55, Upgrade Docker to Python 3.10 for x402 SDK compatibility #56)
- x402 middleware enabled
Tasks
- Create GitHub
productionenvironment (if not exists) - Modify
deploy.ymlto write env file for main branch (similar to dev) - Modify
docker-compose.ymlto addenv_filetoprovenance_gatewayservice - Set production environment variables:
X402_ENABLEDX402_PAY_TO_ADDRESS(may be different from staging)X402_NETWORK(likelybasefor mainnet, notbase-sepolia)X402_FACILITATOR_URLX402_FREE_TIER_ENABLED
Files to modify
.github/workflows/deploy.yml- Add env file step for main branchdocker-compose.yml- Addenv_fileto main service
Notes
- DO NOT merge to main until dev testing is complete
- Production may use different network (
basevsbase-sepolia) - Production wallet address should be reviewed before setting
- Consider if free tier should be enabled in production
Related
- Configure x402 environment variables for dev deployment #53 - Configure x402 environment variables for dev deployment
- Add x402 environment configuration for dev deployments #54 - PR that implemented dev config
- Upgrade Docker to Python 3.10+ for x402 SDK compatibility #55 - Python 3.10 upgrade for x402 SDK
- Upgrade Docker to Python 3.10 for x402 SDK compatibility #56 - PR that implemented Python upgrade
Metadata
Metadata
Assignees
Labels
No labels