New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: make hey infra to deploy with docker via ssh #4455
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@ezhil56x is attempting to deploy a commit to the Hey Team on Vercel. A member of the Team first needs to authorize it. |
.github/workflows/deploy-api.yml
Outdated
docker stop api-mainnet || true | ||
docker stop api-testnet || true | ||
docker stop api-staging || true | ||
|
||
docker rm api-mainnet || true | ||
docker rm api-testnet || true | ||
docker rm api-staging || true | ||
|
||
docker pull heyxyz/api:latest | ||
|
||
echo "Starting API Mainnet 🚀" | ||
docker run -d \ | ||
--name api-mainnet \ | ||
-p 4784:4784 \ | ||
-e NEXT_PUBLIC_LENS_NETWORK=mainnet \ | ||
-e DATABASE_URL=$DATABASE_URL_MAINNET \ | ||
-e CLICKHOUSE_PASSWORD=$CLICKHOUSE_PASSWORD \ | ||
-e SECRET=$SECRET \ | ||
-e EVER_ACCESS_KEY=$EVER_ACCESS_KEY \ | ||
-e EVER_ACCESS_SECRET=$EVER_ACCESS_SECRET \ | ||
-e LENS_IPFS_AUTH_KEY=$LENS_IPFS_AUTH_KEY \ | ||
-e IPAPI_KEY=$IPAPI_KEY \ | ||
-e GOOGLE_API_KEY=$GOOGLE_API_KEY \ | ||
-e IRYS_PRIVATE_KEY:$IRYS_PRIVATE_KEY \ | ||
-e IMAGEKIT_URL=$IMAGEKIT_URL \ | ||
-e ZENDESK_API_KEY=$ZENDESK_API_KEY heyxyz/api:latest | ||
|
||
echo "Starting API Testnet 🚀" | ||
docker run -d \ | ||
--name api-testnet \ | ||
-p 5784:5784 \ | ||
-e NEXT_PUBLIC_LENS_NETWORK=testnet \ | ||
-e DATABASE_URL=$DATABASE_URL_TESTNET \ | ||
-e CLICKHOUSE_PASSWORD=$CLICKHOUSE_PASSWORD \ | ||
-e SECRET=$SECRET \ | ||
-e EVER_ACCESS_KEY=$EVER_ACCESS_KEY \ | ||
-e EVER_ACCESS_SECRET=$EVER_ACCESS_SECRET \ | ||
-e LENS_IPFS_AUTH_KEY=$LENS_IPFS_AUTH_KEY \ | ||
-e IPAPI_KEY=$IPAPI_KEY \ | ||
-e GOOGLE_API_KEY=$GOOGLE_API_KEY \ | ||
-e IRYS_PRIVATE_KEY:$IRYS_PRIVATE_KEY \ | ||
-e IMAGEKIT_URL=$IMAGEKIT_URL \ | ||
-e ZENDESK_API_KEY=$ZENDESK_API_KEY heyxyz/api:latest | ||
|
||
echo "Starting API Staging 🚀" | ||
docker run -d \ | ||
--name api-staging \ | ||
-p 6784:6784 \ | ||
-e NEXT_PUBLIC_LENS_NETWORK=staging \ | ||
-e DATABASE_URL=$DATABASE_URL_STAGING \ | ||
-e CLICKHOUSE_PASSWORD=$CLICKHOUSE_PASSWORD \ | ||
-e SECRET=$SECRET \ | ||
-e EVER_ACCESS_KEY=$EVER_ACCESS_KEY \ | ||
-e EVER_ACCESS_SECRET=$EVER_ACCESS_SECRET \ | ||
-e LENS_IPFS_AUTH_KEY=$LENS_IPFS_AUTH_KEY \ | ||
-e IPAPI_KEY=$IPAPI_KEY \ | ||
-e GOOGLE_API_KEY=$GOOGLE_API_KEY \ | ||
-e IRYS_PRIVATE_KEY:$IRYS_PRIVATE_KEY \ | ||
-e IMAGEKIT_URL=$IMAGEKIT_URL \ | ||
-e ZENDESK_API_KEY=$ZENDESK_API_KEY heyxyz/api:latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we make a shell script for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can I make a shell script then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup
Any updates? |
Did some trial and error. Couldn't make it. I'm traveling this week. Will give an update next week |
@bigint required changes are done. Can you review once? 🙇🏻 |
@bigint Any update? |
Closing this and will open new PR |
What does this PR do?
Related issues
Fixes #4452
/claim #4452
Type of change