All Projects → zpnk → Stage Ci

zpnk / Stage Ci

Licence: mit
Automatic deploy previews for your PRs using zeit.co/now.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Stage Ci

Now Pipeline
Simple CI pipeline with goal to deploy new version at Zeit Now cloud if tests pass
Stars: ✭ 143 (+8.33%)
Mutual labels:  now, zeit, deploy
Deploy.now
One click deploys to △ now
Stars: ✭ 121 (-8.33%)
Mutual labels:  now, zeit, deploy
now-docs
[WIP] Deploy docs with a single command using Now
Stars: ✭ 45 (-65.91%)
Mutual labels:  deploy, now, zeit
Temps
λ A selfhostable serverless function runtime. Inspired by zeit now.
Stars: ✭ 15 (-88.64%)
Mutual labels:  webhook, now, zeit
sre.surmon.me
💻 SRE service for Surmon.me blog.
Stars: ✭ 34 (-74.24%)
Mutual labels:  webhook, deploy
Now Logs
realtime logging for now - https://logs.now.sh
Stars: ✭ 103 (-21.97%)
Mutual labels:  now, zeit
Meteor Now
Instantly deploy your Meteor apps with `meteor-now`
Stars: ✭ 339 (+156.82%)
Mutual labels:  now, zeit
Vercel Builder
Vercel Builder for Nuxt.js
Stars: ✭ 437 (+231.06%)
Mutual labels:  now, zeit
now dashboard
▲ZEIT dashboard written in elm
Stars: ✭ 52 (-60.61%)
Mutual labels:  now, zeit
Micro Proxy
[DEPRECATED] Simplest proxy server for microservices
Stars: ✭ 358 (+171.21%)
Mutual labels:  now, zeit
Now Builders
Official Now Builders created by the ZEIT team
Stars: ✭ 483 (+265.91%)
Mutual labels:  now, zeit
now-course
Proyecto para el curso de Now.sh en Platzi
Stars: ✭ 19 (-85.61%)
Mutual labels:  now, zeit
notion-custom-domain
📝 Custom domains for your public Notion pages
Stars: ✭ 23 (-82.58%)
Mutual labels:  now, zeit
Covid19 Brazil Api
API com dados atualizados sobre o status do COVID-19 🦠
Stars: ✭ 300 (+127.27%)
Mutual labels:  now, zeit
Webhook
webhook is a lightweight incoming webhook server to run shell commands
Stars: ✭ 7,201 (+5355.3%)
Mutual labels:  webhook, deploy
Jwt Example
Playing with user registration, login/logout, auth, etc using JWTs, serverless functions & faunadb as the data store.
Stars: ✭ 22 (-83.33%)
Mutual labels:  now, zeit
Vercel Php
▲ Vercel PHP runtime • vercel-php • now-php • 🐘+ λ = ❤
Stars: ✭ 429 (+225%)
Mutual labels:  now, zeit
Now Clear
A utility to delete all zeit now instances that aren't aliased
Stars: ✭ 12 (-90.91%)
Mutual labels:  now, zeit
now-compose
Docker compose for zeit now. [deprecated]
Stars: ✭ 80 (-39.39%)
Mutual labels:  now, zeit
docker-craft-nginx
🐳 A minimal Docker container for Craft CMS, intended for use with zeit-now.
Stars: ✭ 26 (-80.3%)
Mutual labels:  now, zeit

stage-ci

Realtime staging environments.

Prerequisites

Node 6.6.0 and greater (security requirement for crypto.timingSafeEqual)

Development

Install project dependencies:

$ yarn

If using GitHub, generate a GitHub token with the repo scope. Set this token in an environment variable:

$ export GITHUB_TOKEN=123

If using GitLab, generate a GitLab token with the api scope. Set this token in an environment variable:

$ export GITLAB_TOKEN=123

Generate a Zeit API token and set it in an environment variable:

$ export ZEIT_API_TOKEN=123

To enable Papertrail logging, set the respective environment variables:

$ export PAPERTRAIL_HOST=logs.papertrail.com && PAPERTRAIL_PORT=1234

To inject environment variables into the staging deployment, set the ENVS environment variable to a valid JSON object:

$ export ENVS='{"REDIS_HOST": "my.cache.aws.com", "REDIS_PORT": 1234}'

Now start the server:

$ yarn dev

Testing GitHub integration

Install ngrok or some other localhost tunnel. Fire it up and point it to port 3000:

$ ngrok http 3000

Setup a test repo on GitHub and configure a webhook using the ngrok url. Choose "Let me select individual events" and choose the "Pull request" event. You also must generate a secret; it should be long and you should not share it with anyone. Use this value here as the webhook Secret.

Now use the same value to set your secret environment variable:

$ export GITHUB_WEBHOOK_SECRET=REPLACEME_123123

Open a PR on your repo to trigger the webhook. It will also fire on commits pushed to the PR's branch.

Dev away! :)

License

stage-ci is licensed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].