deployctl 1.9.0: token provisioning, config file, and much more!
With the 1.9.0 release of deployctl, manual access-token handling is a thing of
the past! 🎉 Starting with this release, if a token is not provided via arg or
env, a new one will be provisioned using an OAuth authorization flow.
Additionally, several other improvements have been introduced to simplify the
user experience of the tool: this version introduces support for a config file
where some settings like project
, entrypoint
, include
and exclude
can be
configured and shared. This config file is created at the end of a deployment if
it does not exist yet. It defaults to deno.json
(integrating with the rest of
deno CLI configuration), and looks like this:
{
...
"deploy": {
"project": "6067570b-ee11-4e2e-b7df-692d11e049d5",
"exclude": [],
"include": [
"main.ts",
"deps.ts"
],
"entrypoint": "main.ts"
}
}
You can continue to perform deployments using the --entrypoint
and --project
flags (which now will create the project automatically during deployment if it
does not exist). However, we have introduced some heuristics to try and make
deployments even more simple. Now deployctl guesses the project name of the
deployment based on the Git repository it is in (or directory name if the
deployment is not performed within a repository). Similarly, it guesses the
entrypoint by looking for files with common entrypoint names (main.ts,
src/main.ts, etc), so that, most of the time, having your code deployed around
the globe can be as simple as running:
deployctl deploy
What's Changed
- Feat: Automatic token provisioning on deploy by @arnauorriols in #178
- Feat: Create project if not found by @arnauorriols in #192
- Fix: set
accept: application/x-ndjson
in fetching live logs by @magurotuna in #194 - Feat: persist project config in deno.json by @arnauorriols in #193
- Feat: Project and entrypoint inference by @arnauorriols in #195
- Feat: Support multiple
--include
and--exclude
args, and persist them to deno.json by @arnauorriols in #205 - Feat: Support include/exclude in github action by @osdiab in #135
- Feat: custom user agent by @arnauorriols in #217
- Chore: Improve deploy subcommand docs by @arnauorriols in #211
- Feat: Support jsonc config files by @arnauorriols in #206
New Contributors
- @arnauorriols made their first contribution in #178
- @osdiab made their first contribution in #135
Full Changelog: 1.8.2...1.9.0