covidsimteam / SocNet

Rest API for social and physical proximity networks and map queries
GNU General Public License v3.0
2 stars 0 forks source link

Custom VM Deploy: Create a GitHub Actions push notification and prox-e node/express based deploy handlers #3

Open risavkarna opened 4 years ago

risavkarna commented 4 years ago

Feature Description: When a master push occurs, GitHub Actions should emit a deploy request to prox-e, which should in turn update cov-hub.

Solution Description: For any given VM, please use prox-e's node/fs/os capabilities in tp scripts to pull up the latest from master, run npm i && npm run build:prod on it and copy the resulting dist artifacts to the ~/nep.work/public on that same VM. .

Alternatives Discussion: We can also use prox-e node in combination with ansible or some orchestrator.

Additional Context: This is only for Nepali and other custom server deployments. We still depend on the azure pipeline created by @sookah for our global releases.

risavkarna commented 4 years ago

Depends on covidsimteam/prox-e#83 and [ covidsimteam/prox-e#85, covidsimteam/prox-e#66 ] (as important bugs must be fixed before starting new issues)