—ReleaseOps
ReleaseOps overview.
ReleaseOps is the deployment-governance workflow inside V19 Agent. It records and coordinates work around existing source-control, CI/CD, infrastructure, change-management, and communication systems.
Coordinate existing tools; do not impersonate them

01
The deployment lifecycle
- Capture deployment intake, ownership, scope, dependencies, and timing.
- Run readiness checks and surface missing permissions or evidence.
- Create or select a versioned playbook with validation and rollback expectations.
- Collect approval gates and enforce separation of duties.
- Guide execution through an available adapter or an explicitly manual step.
- Validate the observed result or assign deferred validation with an owner and deadline.
- Collect evidence, update audit history, communicate status, and close only when exit criteria pass.
02
What users manage
- Deployment requests and their version history
- Repositories, applications, clients, environments, and dependencies
- Playbooks, approval policies, schedules, retries, and rollback expectations
- Change records, knowledge-transfer sessions, and extracted evidence
- Validation results, deferred follow-ups, audit history, reports, and exports
- Connector configuration and actual availability state
03
Availability rules
- GitHub and AWS live paths require configured, scoped credentials and safe test accounts.
- Azure and GCP analysis remain preview until live inventory is implemented and verified.
- Terraform and CLI artifacts can be reviewed; local Terraform apply remains disabled by the desktop safety contract.
- Communication actions require configured adapters and must surface delivery failures.
- Every external operation needs resulting evidence before it is marked successful.
Use the download page for the current installer and release status.
04
Trust questions
Does ReleaseOps replace CI/CD?
No. It coordinates governance and evidence around existing systems.
Where do users work?
In the installed V19 application.
Can a preview adapter execute?
No. Preview must remain labeled and must not return synthetic success.
What proves execution?
An actual adapter response plus persisted validation and audit evidence.
Can validation be deferred?
Yes, when policy allows it and an owner, deadline, and follow-up state are recorded.
When is a request closed?
Only after required approvals, execution or manual steps, validation, evidence, and closure criteria are satisfied.
05
Deployment checks per stage

In the cockpit, Checks lets owners and admins attach checks to each release stage (Plan, Validate, Approve, Deploy, Verify and Recover): smoke tests with an expected status and latency, health checks against a metric threshold, migration dry runs in a named workflow job, custom scripts in your repository, manual checklists, security scans (your scanner, with the most critical and high findings allowed) supply-chain evidence (an SBOM, SLSA provenance or both, verified by your tool) resilience experiments (for example a chaos test with AWS FIS or Chaos Mesh, run under your own safeguards) and GitHub Actions from the marketplace (any action, pinned to a full 40-character commit SHA, with plain name=value inputs; expressions such as secrets are refused). Owners and admins can also describe a check in plain language under Draft with AI; the workspace's governed AI fills the form with a draft that passes the same validation, and nothing is saved until they add it. Start from the library offers reviewed starting checks, such as Trivy, Grype, Checkov, Hadolint, the OWASP ZAP baseline scan, Lighthouse, a health smoke test and a production change checklist. Each GitHub Action there is pinned to the commit of a published release, with a link to that release; picking one fills the form, and entries with example addresses say what to change first. Each check is blocking or advisory and keeps a version that increases with every edit, so a release can record exactly which checks applied.
V19 never runs a check. Under CI workflow for these checks, the page generates a GitHub Actions workflow (.github/workflows/v19-deployment-checks.yml) that runs the smoke tests, repository scripts and GitHub Actions for a chosen stage; copy or download it and add it through a pull request, or have the desktop Agent open the pull request: it reads the generated workflow with a read-only tool and proposes the branch, commit and pull request, each waiting for a person's approval. Health checks, migration dry runs and manual checklists are listed with the reason they are not in that file. Each generated job ends by reporting its result to V19 when the repository has a V19_API_KEY secret (an API key with the checks:report scope, kept separate from agent keys so an agent cannot certify its own checks; it is available to the whole check job, including your scripts) and an optional V19_URL variable. The Checks page then shows each check's last result, and says when it ran an older version of the check. Results are evidence only.
Before the desktop app dispatches a deployment, every enabled blocking check at an earlier stage (Plan, Validate or Approve) must have a passing result for that exact commit, at the check's current version, reported within the last 72 hours. Otherwise nothing is dispatched and the app says why. A blocking Verify check runs after a deployment, so it can't stop that one; once it fails for a commit (for example in staging), that commit can't be deployed anywhere else until the check passes for it again. If checks cannot be read, nothing is dispatched either. A manual checklist counts once an owner, admin, operator or security reviewer ticks every item and confirms it for the full commit SHA under Confirm for a commit; the confirmation is recorded with their name. A security scan, supply-chain check or resilience experiment counts once your pipeline reports a pass or fail for the commit, using the settings on the check. A health check counts once your monitoring evaluates it and reports the result for the commit through POST /api/v1/checks/results; until then a blocking health check blocks. An audited emergency production bypass skips the checks, as it skips branch policy. The desktop deploy form lists the blocking checks that must pass, with the commit once readiness has resolved it. The page warns when nothing is checked at Verify, because a release could then be marked complete without recorded proof that it works.
Under Checks as code, choose Download checks file to keep checks in Git. To change them, paste an edited file and choose Preview checks file. The preview lists new, changed and disabled checks, and anything that loosens deployment gates. Owners and admins can then apply it. Applying only goes ahead if the checks have not changed since the preview, and it changes all of them or none. Checks the file leaves out are disabled rather than deleted, so past results keep their meaning.
A Cost estimate check prices the infrastructure code at a path in your repository with Infracost (start from Infrastructure cost estimate in the library). The generated job uses the Infracost setup action pinned to release v5.0.1 and needs an INFRACOST_API_KEY secret in your repository; Infracost's pricing service receives the resource types and sizes, not your cloud credentials. The job reports the estimated monthly cost with its result. V19, not CI, compares it with the previous estimate for a different commit: when the increase is above the check's limit, V19 records the result as failed, so a blocking cost check stops the release. The first estimate is the baseline. If a passing run reports no cost, V19 records an error. The Checks page shows the latest estimate and the change from the previous commit.
A Build-once artifact check makes sure every environment deploys the exact same container image for a release (start from Same image in every environment in the library). Each environment's deploy job reports the image digest it deployed, with the commit and the environment. The first digest reported for a commit becomes the reference. If a later environment reports a different digest, V19 records the result as failed, whatever your pipeline reported, so production never runs an image that staging did not test.
A Migration safety check reads the SQL of every database migration a change adds (start from Migration safety in the library). The generated job sends the new migration files with its result, and V19 itself decides. It fails the release on statements that lose data: dropping a table or column, TRUNCATE, renames, column type changes, and DELETE or UPDATE without a WHERE clause. You can also have it block statements that lock busy tables, such as building an index without CONCURRENTLY. Each finding shows the file, line and the safer way to do it. When a destructive statement is intended, put -- v19:allow-destructive and your reason on the line before it; the reason is kept with the result. V19 does not store your SQL.
An OPA policy (Conftest) check enforces your company guardrails written as Open Policy Agent rules in Rego (start from OPA policy check in the library). Name the folder that holds your .rego files and the files to check, such as Kubernetes manifests or a Terraform plan in JSON, and optionally the Rego package. The generated job downloads Conftest at a pinned release, verifies its checksum, and fails the check when any rule returns a deny. Your policies stay in your repository and run in your CI; V19 records the result for the commit like any other check.
06
Tenants, tags and fan-out
In the desktop app, under Settings → Environments, owners and admins can tag each environment with lowercase key:value labels such as tenant:acme, region:eu or ring:1. Saving uses the same governed configuration path as creating an environment, and an edit is refused if someone changed the tags in the meantime.
Tenants in the cockpit lists the customers you run dedicated environments for. Onboard a tenant creates the tenant and its environments in one step from a template (for example staging and production, named mercy-stg and mercy-prod), tagged tenant:mercy and its ring, so every control applies to them. Each tenant shows what its environments run now, per repository. Moving a tenant to a later ring retags its environments; moving it earlier, taking it out of rings or archiving it needs an owner. Archiving never deletes environments; an archived tenant's environments take no new deployments, rollbacks or runbook runs (tenant_archived) and are left out of fan-out. In the desktop app, Tenant fan-out takes a selector (all terms must match, and key:* matches any value) and lists the matching environments in ring order, with untagged rings last. Enter a repository and a tag (or branch) and choose Check rollout to see, for that exact commit, which environments have it, which failed or are running, and which are ready or waiting for an earlier ring (with the reason). Deploy ring N deploys every ready environment in the next ring. Each one is its own deployment with its own policy, checks, change ticket and approvals, so a refusal in one tenant never skips a gate in another. Use a tag so every ring gets the same commit. The same view is available to scripts at GET /api/desktop/environments/fan-out.
Rings make a rolling rollout, and the server enforces them for every deployment, whether from the app or the Agent. An environment tagged ring:N (N above 0) waits until at least one ring:N-1 environment runs the same repository and commit: its latest successful deployment is that commit. If a ring:N-1 environment was rolled back from the commit, later rings wait until it runs the commit again. An environment has one ring tag, written ring:0, ring:1 and so on. Add rollout:all to make it wait for every ring:N-1 environment. The rollout halts on failure: while the latest deployment of the commit has failed in any ring:N-1 environment, later rings are refused until it is fixed or redeployed successfully. A batch:K tag limits how many environments in the same ring may deploy the commit at the same time; the smallest value in the ring applies. Untagged environments are not gated, and the audited emergency bypass skips the ring check.
To keep environments in Git, open Variables in the cockpit and choose Download environments file under Environments as code. The file lists each environment's name, tier, order, tags and change window. Paste an edited file and choose Preview environments file to see new and changed environments, environments the file leaves out (they are kept, never deleted) and anything that loosens deployment gates, such as removing a change window, a freeze or a ring tag. An existing environment's tier cannot be changed from a file. Owners and admins can apply the preview; it only goes ahead if nothing changed since the preview, and it changes all of the environments or none.
07
Database changes in a deployment
When you check readiness for a deployment in the desktop app, V19 compares the commit with the last successful deployment of the same repository to the same environment and lists any changed migration files (for example Prisma, Rails, Alembic, Flyway, Liquibase, Supabase or Drizzle migrations). Review the migration and its rollback before dispatching.
This is advisory evidence: custom layouts may not be recognised, a comparison lists at most 300 files, and the first deployment to an environment cannot be compared. To make a migration review mandatory, attach a blocking migration dry run check.
08
Change windows and freezes
In the desktop app, under Settings → Environments, owners and admins can give an environment a change window: a time zone (for example America/New_York; UTC if left empty), the days it opens on and one or more times in that zone (for example 22:00-02:00, which crosses midnight from the day it starts), freezes written as 2026-12-20 to 2027-01-02: Holiday freeze, and weekly freezes written as Fri 16:00-23:59: No Friday deploys (several days: Sat,Sun 00:00-23:59: reason). Times follow the zone's daylight-saving changes, and the weekday is the local one. The editor shows whether deployments are allowed right now and when the window next opens. Saving uses the governed configuration path, and an edit is refused if someone changed the window in the meantime.
The desktop app refuses to dispatch outside the window or during a freeze, before any GitHub work starts. A freeze always wins over a window. A rule that cannot be read refuses deployments until it is fixed, rather than silently allowing them. The audited production emergency bypass still works. When a deployment is refused because the window is closed or a freeze is active, the desktop app offers Deploy when the window opens with the next opening time. Keep the app open and signed in: it sends the same deployment a few seconds after the window opens, and every gate (policy, checks, rings, window and approvals) is checked again then. Changing the deployment details cancels it, and nothing is sent if the app is closed; V19 does not deploy unattended from its servers. Every refusal at a release gate (window, freeze, stability warning, checks or rings) also sends a deployment.blocked webhook, so a Slack or pager bridge can tell the team.

To stop deployments quickly, for example during an incident, owners and admins can use Deployment freeze on the cockpit Overview. Choose production (environments with the prod tier) or every environment, how long (1 hour to 7 days) and a reason, then choose Freeze deployments. V19 adds that freeze to each environment's change window and keeps its existing windows and freezes. Members see every active freeze, and the freeze calendar lists every one-off and weekly freeze in the next 30 days. Editing a change window, or applying an environments file, can never lift a freeze that is in force: end it here, so who ended it and why is recorded. End freeze now ends active freezes with that reason; the freeze stays on record with its shortened end time. Freezes apply to AI agents as well as people. Webhooks subscribed to deployment.freeze_started and deployment.freeze_ended are told when a freeze starts or ends early. An incident tool can start a freeze with an API key that has the freeze:start permission (POST /api/v1/environments/freeze, up to 24 hours); it cannot end one. Insights lists the freezes started and ended in the last 30 days, with whether each came from the cockpit or an API key.
Freeze production while a critical incident is open. This option on the same panel is off until an owner or admin turns it on. With it on, a P1 incident (PagerDuty high urgency or Opsgenie P1) arriving on the workspace's signed incident webhook freezes every production environment, with the incident named in the reason. The freeze ends when that incident resolves, or after 12 hours at most, so a lost “resolved” event cannot freeze deployments indefinitely. Acknowledging an incident changes nothing, a repeated trigger adds no second freeze, and you can still end it early.
Connect your incident tool. On the same panel, choose PagerDuty or Opsgenie and Connect. V19 shows a webhook URL for this workspace. In PagerDuty, add a V3 webhook subscription for incident events with that URL and paste PagerDuty's signing secret into V19 when you connect (or paste it before choosing Connect). For other tools, leave the secret empty: V19 creates one, shown once, and the tool must sign each delivery with HMAC-SHA256 of the raw body in an X-Signature header. A PagerDuty priority of P1 (or SEV1), or high urgency, counts as P1. Disconnect an endpoint at any time; deliveries to it are then refused.
09
Kubernetes rolling, blue/green and canary

Services also shows Delivery health for each environment over the last 30 days: runs, the share that succeeded, the median run time, and runs that look stuck (queued over 30 minutes or running over 2 hours) or lost tracking. An environment is failing when its last three finished runs failed or fewer than half of at least four finished runs succeeded, and degraded when anything else needs a look. It is built from recorded runs, not from the live state of your systems.
Scorecards grade each service on six checks: an owning team is recorded, CODEOWNERS is present, the default branch is protected, it was delivered in the last 30 days, at least 80% of its recent finished runs succeeded, and no incident linked to its releases is open or mitigated. A check without enough data shows as unknown and never counts as a pass. Weakest services come first, and each card names the next step for its first failing check.
To fill in owners from your repositories, choose Read ownership files on Services. V19 reads each connected GitHub repository's Backstage catalog-info.yaml (owner, system and lifecycle) and checks for a CODEOWNERS file in .github/, the root or docs/, on the default branch. It only reads; nothing is written to GitHub. A repository that cannot be read keeps its previous values. Owners, admins and operators can run it.
In the cockpit, Services generates a GitHub Actions workflow for a Kubernetes rolling update, a blue/green switch or a canary. Commit it to your repository and add a KUBE_CONFIG repository secret scoped to the namespace: cluster access stays in your CI, and V19 never holds it. V19 dispatches the workflow only after the environment's policy, checks, rings, change window and approvals pass.
A rolling update undoes itself if the rollout does not become ready. Blue/green deploys to the idle colour, waits for it, then switches the Service selector; the previous colour keeps running so you can switch back. A canary runs the new image in a small canary Deployment, watches readiness and restarts for the minutes you choose, promotes to the main Deployment, and always scales the canary back to zero. The workflow uses only kubectl and checks the image reference before using it.
10
Runbooks

The cockpit's Runbooks page keeps your team's procedures for failed deploys, incidents, freezes and routine work. Each runbook has a key, when it applies, and steps. Each step says what to do and the approval it needs: none, one admin, or two different admins. Start from a template (a failed deploy, freezing production during an incident, rotating a leaked API key) or write your own. Owners and admins edit runbooks; every edit increases the version, and an edit is refused if someone changed the runbook in the meantime. Steps that contain destructive commands, such as rm -rf /, DROP TABLE or terraform destroy, are refused.
Choose Download runbooks file to keep them in Git. The desktop Agent can read enabled runbooks to suggest the right one.
Run a runbook. A runbook can name a GitHub Actions workflow that does its steps: the repository, the workflow file, the branch and the environments it may run in. Owners, admins and operators choose Run, pick an environment and say why. If any step needs approval, the run waits for one or two owners or admins other than the person who asked (as the strongest step says), for up to 24 hours; a step that names admins can only be approved by owners or admins, even when the environment has an approver group. If the run then can't start, the approval still stands and the run shows why it didn't start. Then V19 checks the workflow file is on the branch, records that commit and starts the workflow with the inputs runbook, environment, v19_runbook_run and reason, which the workflow must declare. The workflow does the work with your own credentials; V19 never runs commands itself. The environment's own approval rule and approver group apply when they ask for more (a change board, three approvals), and so does its change-ticket rule. Every gate is checked again at the moment the run starts: a freeze or closed window, a ticket that was closed, or an approver who left the group stops it, even if it was approved earlier. A run is refused if the runbook changed after it was requested, and a run that executed a different commit than the one checked is recorded as a source mismatch. Recent runs shows each run, its approvals and its outcome, with a link to the workflow run. Adding a workflow or environments to a runbook in a file is flagged as loosening.
11
Release evidence pack
In the cockpit, Insights → Export release evidence downloads one JSON file for a repository commit: every recorded deployment of it (environment, who, when, policy, reviewed pull request, change ticket, configuration fingerprint and outcome), every check result CI reported for it, every deploy approval request (who asked, who approved, notes, and which deployment used it), the recorded state history of the change tickets those deployments named, and audit events on those deployments. Configuration values are not included, only their fingerprints. Missing evidence is listed under gaps rather than invented.
The file carries a SHA-256 digest of its canonical JSON (sorted keys, without the export time), so exporting the same records again gives the same digest and an auditor can recompute it. Every export is recorded in the audit log.
12
Argo CD and Flux
V19 includes read-only clients for Argo CD (applications in one project) and Flux (Kustomizations in one namespace through the Kubernetes API). They compare the commit the GitOps controller reports as applied with the commit V19 recorded for the environment, and explain whether they match, the controller is behind, it applied something V19 did not deploy, it is unhealthy, or reconciliation is suspended. V19 never syncs, reconciles, rolls back or suspends. Connect them under Release signals (see below); live acceptance with a real Argo CD instance or cluster is still pending.
13
Stability early warning
V19 compares the change failure rate of releases finished in the last 7 days with the 90 days before. When at least three recent releases failed, rolled back or had an incident reported against them, and the recent rate is at least 20% and well above the earlier rate, Overview and Insights show a stability warning. While it is active, the desktop app asks for a reason before a production deployment and records that reason in the audit log. If release records cannot be read, nothing is blocked.
14
Lambda, Cloud Run and Azure Functions
In the cockpit, Services also generates serverless deploy workflows. For AWS Lambda, it publishes a new version, sends it a share of traffic on an alias named live, and moves all traffic back if that version reports errors. For Google Cloud Run, it deploys a revision with no traffic, sends it a share, watches readiness, then moves all traffic to it. For Azure Functions, it deploys to a staging slot, checks a health path, and swaps it into production.
Each workflow signs in to your cloud with short-lived OIDC federation that you configure in your account. The workflow reads the role, service account or client IDs from repository variables, so no cloud keys are stored in GitHub or V19. The official sign-in actions are pinned to exact commits. As with every template, V19 dispatches the workflow only after the environment's gates pass.
15
Verification signals from Sentry and Datadog
V19 includes read-only clients for Sentry (unresolved issues first seen in a release) and Datadog (monitor states for a service tag). A verification step combines them with Verify-stage check results into one verdict: healthy, investigate or unhealthy, with the reasons. Signals that are not connected are listed as missing, never assumed healthy. V19 never resolves, mutes or edits anything in those tools. Connect them under Release signals (see below); live acceptance with real accounts is still pending.
16
Connect release signals
In the desktop app, under Settings, Release signals connects Argo CD, Flux, PagerDuty, Opsgenie, incident.io, Rootly, Sentry, Datadog, Dynatrace, New Relic, Honeycomb, LaunchDarkly, Unleash, Jenkins and Prometheus-compatible alerting (Prometheus, Grafana Cloud or Mimir, Thanos and VictoriaMetrics). Each card asks only for what that tool needs, for example the Datadog site, a monitor tag and read-only keys. When you connect, V19 checks the credential with one small read before saving it, then stores it encrypted for this workspace. Secret fields are cleared after every attempt and are never shown again.
Every connection is read-only. Use the least access each tool offers: a read-only token, a reader role, or a scope such as monitors_read. V19 never syncs, pages, acknowledges, resolves, mutes or toggles anything. You can replace or disconnect a connection at any time.
After a deployment, the desktop deploy form offers Check release health. Enter the release name your tools use (it starts as the deployed tag or branch). V19 then reads every connected signal at once: open PagerDuty and Opsgenie incidents, new Sentry issues first seen in that release, alerting Datadog monitors, LaunchDarkly temporary flags still on after 30 days or Unleash flags marked stale but still on, and Verify-stage check results for the commit. It shows one verdict with the reasons. A tool that is not connected, or does not answer, is listed as not available and never counted as healthy. The Agent can read the same release health with its read-only read_release_health tool when you ask how a release is doing, the state of connected Argo CD and Flux applications with read_gitops_state, and Jenkins jobs with read_ci_jobs.
For Prometheus or Grafana, enter the API URL that serves /api/v1/alerts, a read token, and for Grafana Cloud the instance ID as the user. To count only one service's alerts, add a label such as service=checkout. Firing alerts count as alerting and pending ones as warnings in release verification, together with Datadog monitors when both are connected.
17
Service targets and image promotion
An environment has one default deploy target, which restarts its ECS service. To deploy several services to one environment, add a service target per repository in the desktop app under Settings → Environments: the IAM role, region, cluster, service, the container to update and the image repository (without a tag). A repository with a service target is deployed by image; every other repository keeps using the default target.
An image deploy builds once and deploys the same bytes everywhere. CI reports a passing check result with the image digest for the commit (see deployment checks above). When you deploy, V19 resolves the branch or tag to a commit, takes the digest reported for that commit and dispatches v19-deploy-aws-ecs-image.yml with the image pinned as repository@sha256:…. If no digest was reported, the deploy is refused; V19 never deploys a tag such as latest.
Signed builds only. A build-once check can name the workflow that must sign every build, for example https://github.com/acme/web/.github/workflows/release.yml@refs/heads/main. CI then sends the Sigstore bundle with the result (attestationBundle: the bundle from actions/attest-build-provenance or cosign attest-blob). V19 verifies it itself before recording a pass: the certificate chains to Sigstore's public certificate authority, the signature is in the public transparency log, the signer is exactly that workflow on GitHub Actions, the certificate says the build ran on the expected repository (the signer's own repository, or the check's sourceRepository for a shared signing workflow) at exactly the reported commit, and the signed statement names this exact digest. Once any build-once check requires a signer, deploys in the workspace use only signature-verified builds, and changes in components are shown only from verified builds. A missing, foreign or tampered signature records the result as failed, so that digest can never be deployed. V19 keeps the verdict, not the bundle.
What changes in a release. CI can send the build's bill of materials with the build-once result as sbom: a list of { name, version, purl }, an SPDX JSON document or a CycloneDX JSON document, up to 5,000 components. V19 keeps each component's name, version and ecosystem, not the file. When you check readiness for an image deploy, the desktop app shows what changes against the image running in that environment: components added, removed and changed version. This is advisory and never blocks a deploy.
For build-once checks, releaseRef must be the full 40-character commit SHA. The first digest any build-once check reports for a commit is its reference: a different digest from any check (not only the same one) is recorded as failed, and if two passing results ever name different digests the deploy is refused. After dispatch, V19 compares the commit the workflow run actually built with the commit it checked; if the branch moved in between, the run is recorded as a source mismatch, never as a success, so it can't satisfy promotion or rings.
When an environment requires promotion from an earlier one, an image deploy must use the same digest that succeeded there. A different build of the same commit is refused, and a restart can never stand in for an image promotion because a restart does not prove which bytes run. Approvals, branch policy, deployment checks, rings, change windows and freezes apply exactly as for every other deploy. If the branch moves while the deploy is being checked, V19 stops and asks you to check again.
V19 only runs the published workflow for image deploys. Before every dispatch it reads .github/workflows/v19-deploy-aws-ecs-image.yml at the exact commit being deployed and refuses unless it matches the template below byte for byte. The workflow signs in with GitHub OIDC (no stored AWS keys), registers a task definition revision that changes only the named container's image, updates the service, waits for it to stabilize and, if it does not, redeploys the previous task definition and fails.
name: V19 AWS ECS image deploy
on:
workflow_dispatch:
inputs:
role_arn:
required: true
type: string
region:
required: true
type: string
cluster:
required: true
type: string
service:
required: true
type: string
container:
required: true
type: string
image:
description: Image pinned by digest (repository@sha256:...)
required: true
type: string
permissions:
id-token: write
contents: read
concurrency:
group: v19-ecs-${{ inputs.role_arn }}-${{ inputs.region }}-${{ inputs.cluster }}-${{ inputs.service }}
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
env:
AWS_MAX_ATTEMPTS: "1"
ECS_CLUSTER: ${{ inputs.cluster }}
ECS_SERVICE: ${{ inputs.service }}
CONTAINER: ${{ inputs.container }}
IMAGE: ${{ inputs.image }}
steps:
- name: Refuse an image that is not pinned by digest
run: |
if ! printf '%s' "$IMAGE" | grep -Eq '^[A-Za-z0-9./_:-]+@sha256:[a-f0-9]{64}$'; then
echo "::error::image must be repository@sha256:<64 hex>"; exit 1
fi
- name: Configure AWS credentials (OIDC, no stored keys)
uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6.3.0; reviewed full commit
with:
disable-retry: true
translate-env-variables: false
role-to-assume: ${{ inputs.role_arn }}
aws-region: ${{ inputs.region }}
- name: Register a task definition revision with the pinned image
id: register
run: |
PREVIOUS_TASK_DEF=$(aws ecs describe-services --cluster "$ECS_CLUSTER" --services "$ECS_SERVICE" --query 'services[0].taskDefinition' --output text)
echo "previous_task_def=$PREVIOUS_TASK_DEF" >> "$GITHUB_OUTPUT"
aws ecs describe-task-definition --task-definition "$PREVIOUS_TASK_DEF" --query taskDefinition > current.json
if ! jq -e --arg c "$CONTAINER" '.containerDefinitions | any(.name == $c)' current.json >/dev/null; then
echo "::error::container $CONTAINER is not in the task definition"; exit 1
fi
jq --arg c "$CONTAINER" --arg img "$IMAGE" '
.containerDefinitions |= map(if .name == $c then .image = $img else . end)
| del(.taskDefinitionArn, .revision, .status, .requiresAttributes, .compatibilities, .registeredAt, .registeredBy, .deregisteredAt)
' current.json > next.json
NEW_TASK_DEF=$(aws ecs register-task-definition --cli-input-json file://next.json --query 'taskDefinition.taskDefinitionArn' --output text)
echo "new_task_def=$NEW_TASK_DEF" >> "$GITHUB_OUTPUT"
- name: Deploy the new revision
env:
NEW_TASK_DEF: ${{ steps.register.outputs.new_task_def }}
run: |
aws ecs update-service --cluster "$ECS_CLUSTER" --service "$ECS_SERVICE" --task-definition "$NEW_TASK_DEF" --output text >/dev/null
- name: Wait for the new deployment to stabilize
id: wait
continue-on-error: true
run: aws ecs wait services-stable --cluster "$ECS_CLUSTER" --services "$ECS_SERVICE"
- name: Roll back - deployment did not stabilize
if: steps.wait.outcome == 'failure'
env:
PREVIOUS_TASK_DEF: ${{ steps.register.outputs.previous_task_def }}
run: |
echo "::error::Deployment did not stabilize. Rolling back to the previous task definition."
aws ecs update-service --cluster "$ECS_CLUSTER" --service "$ECS_SERVICE" --task-definition "$PREVIOUS_TASK_DEF" --output text >/dev/null
aws ecs wait services-stable --cluster "$ECS_CLUSTER" --services "$ECS_SERVICE"
exit 1
- name: Deployment stabilized
if: steps.wait.outcome == 'success'
run: echo "Deployed $IMAGE to $ECS_SERVICE."
The role needs ecs:DescribeServices, ecs:DescribeTaskDefinition, ecs:RegisterTaskDefinition, ecs:UpdateService and iam:PassRole for the task roles, and a trust policy limited to your repository. Live acceptance against a real AWS account is still pending.
18
Workflow targets: deploy with your own pipeline
For a platform V19 has no template for, add a workflow target per repository in the desktop app under Settings → Environments: the name of a GitHub Actions workflow in .github/workflows/. Every V19 gate still applies first: change windows and freezes, branch policy (including signed commits), deployment checks, rings, approvals and the stability warning. V19 then confirms the workflow file exists at the exact commit and starts it with four inputs, which the workflow must declare:
environment: the V19 environment slug.commit: the exact commit V19 checked.digest: the build-once digest CI reported for that commit, or empty.v19_execution: V19's deployment record.
V19 follows the run like any other deploy. A run that built a different commit is recorded as a source mismatch, never a success. When a digest was reported, promotion to the next environment requires that same digest; when none was, promotion by workflow isn't allowed, because nothing shows which bytes ran.
Deploy inputs.commit, not the workflow's own commit. For a normal deploy the two are the same. For a rollback, V19 starts your workflow from the current head of the branch (so your latest, verified workflow runs) and passes the earlier commit and its digest as inputs. Check out inputs.commit, rebuild or fetch the bytes for inputs.digest, and don't refuse when github.sha differs from inputs.commit; V19 itself records a run that started from an unexpected head as a source mismatch.
One way in per environment. Let V19 be the only thing that deploys to an environment. If another pipeline also deploys there (a release workflow that pushes on its own, a manual script), whichever ran last wins, and V19's record of what is live, its rollback target and its promotion source can be wrong. Have that pipeline ask V19 first (the Agent gateway or a deployment check) or move its deploy step into the workflow V19 starts.
19
Change tickets from Jira or ServiceNow
Under Governance → Environment approvals, an owner or admin can require an approved change ticket for every deployment to an environment: a Jira issue or a ServiceNow change. Admins can add or tighten the rule; only owners can remove it, switch it to another system, or loosen it. The person deploying enters the ticket in the desktop app (readiness shows when one is needed).
V19 never takes the deployer's word that a ticket is approved. Your change system tells V19: a Jira Automation rule or a ServiceNow business rule calls POST /api/v1/change-tickets with an API key that has the change:record permission whenever the ticket's state changes (approved, rejected, cancelled or closed), optionally with the environment and commit it covers and its implementation window. A deployment goes ahead only when the ticket's state is approved (the record that changed most recently in the source system decides, using its updatedAt, and a closed or cancelled ticket stays closed, so a late or replayed “approved” can't reopen it), the ticket covers this environment and commit if it names them, now is inside its window, and the person deploying didn't create the API key that recorded the approval. A ticket covers one deployment per environment unless the rule is set as reusable; a failed deployment doesn't use it up. Records are never edited, so the history is evidence; the evidence pack names the key that recorded each one.
Checked in ServiceNow. Choose ServiceNow change, checked in ServiceNow to have V19 also read the change from ServiceNow at deploy time, through the workspace's ServiceNow connection (read only). The change must be approved and scheduled or implementing there, and inside its planned start and end; if states were also pushed, both must agree. If ServiceNow can't be reached, nothing is deployed. What ServiceNow said is kept as evidence. Refusals are audited and sent as deployment.blocked webhooks, and rollbacks need a ticket too. The audited production emergency bypass skips this gate, as it skips the others.
Still blocked?
Include the failed step and error. Never send a password, token, or cloud secret.