Repository navigation
OpsCrew 0.2.0
Every deploy workflow changes in this release. Run npx opscrew provision for each environment and merge its pull request; until then, opscrew rollback says so and changes nothing. An app with OpenSearch gets its login with that same provision.
Added
-
opscrew rollback: back to the version that ran before, with one command.- It deploys that version's image by its digest: nothing is rebuilt and no release command runs.
- It uses a deploy's own switch and checks, so with rolling deploys your site keeps serving.
--listshows the versions you can go back to, and--to <commit or digest>picks one.- It asks for approval in a terminal; a script passes
--approve <hash>.--yesnever approves a rollback. - Your data, schema and secrets stay as they are now. The guide says what that means for migrations.
It works on servers OpsCrew creates, your own server, your Portainer and this computer. On Cloudflare's hosting it activates an earlier Worker version, and on GitHub Pages it re-runs an earlier run. See Rolling back a release.
-
Deploys pause after a rollback, so the next push doesn't undo it unnoticed: a push still builds, but doesn't deploy.
opscrew rollback --resumeturns deploys back on, and--deployalso deploys the branch's latest commit now. -
opscrew statusshows which version runs, the one before it, and whether deploys are paused.opscrew_statusin the Claude Code plugin includes the same. -
opscrew logs --failedshows the last lines of a new version that failed its health check. The server keeps them after the failed copy is removed, and the failure messages point there. -
Logins for Kafka, Redpanda and OpenSearch.
- OpenSearch runs its security plugin, and its address carries the login: an app that reads
OPENSEARCH_URLneeds no change. - Kafka and Redpanda ask for a login when you set
login: truein the service's options inopscrew/plan.yaml. Your app getsKAFKA_SASL_MECHANISM,KAFKA_SASL_USERNAME,KAFKA_SASL_PASSWORDandKAFKA_SECURITY_PROTOCOL, and its Kafka client sends them. opscrew designturns the login on when your app's code already reads those variables.
See Message brokers and Search and analytics.
- OpenSearch runs its security plugin, and its address carries the login: an app that reads
-
The Claude Code plugin suggests
opscrew rollbackin the terminal when a recent release is the likely cause, after stating what it leaves as it is.
Changed
promoteandrollbackaccept images built by GitHub's "Run workflow" on the deploy branch, as well as those built by a push.- Going back on Cloudflare's hosting and GitHub Pages is
opscrew rollback, which also pauses their deploys. The runbooks and the deploy failure messages name it. - A failed release command now says the migration may have run partly, where its output is, and what to do next.
Fixed
- After a worker or cron process failed following a switch, the failure message pointed to the lines of the version restarted in its place, not to the failed one's.
Full changelog: v0.1.3...v0.2.0