Closed DavidWells closed 3 years ago
does zeit count? also i wonder if we can ask rust/golang friends and borrow ideas from outside the js bubble
@sw-yx sure add the zeit build config here
the config is kinda split up...
now
command https://zeit.co/docs/v2/build-step#optimized-frameworks{
"builds": [
{ "src": "*.html", "use": "@now/static" },
{ "src": "*.js", "use": "@now/node" }
],
"routes": [
{ "src": "/custom-page", "headers": {"cache-control": "s-maxage=1000"}, "dest": "/index.html" },
{ "src": "/api", "dest": "/my-api.js" },
{ "src": "/users", "methods": ["POST"], "dest": "/users-api.js" },
{ "src": "/users/(?<id>[^/]*)", "dest": "/users-api.js?id=$id" },
{ "src": "/.*", "dest": "https://my-old-site.com"},
{ "src": "/legacy", "status": 404},
{ "src": "/redirect", "status": 301, "headers": { "Location": "https://zeit.co/" } }
]
}
Happened across this while looking for something else. I think the issue has served its purpose in guiding our syntax for build/plugins config, so I'm closing.
Other CI/CD config research
Examples of other CI/CD configuration files.
Travis
link
Note: named keys like
before_install
are lifecycleAWS codeBuild
Notes:
phases
is lifecycleGCP cloudBuild video
Note:
steps
array is lifecycleCircle CI
Codeship CI
Note: lifecycle in seperate file
codeship-steps.yml
Github Actions
Gitlab CI
Serverless lifecycle & Custom hooks
buildkite
Other CI tools