Application Deployments
Zanthem Infrastructure manages the deployment of applications to assigned hosting environments.
Clients maintain responsibility for application development, source code quality, and application functionality.
Deployment procedures are established during onboarding according to the application requirements and service agreement.
Deployment Responsibilities
| Responsibility | Zanthem | Client |
|---|---|---|
| Application development | No | Yes |
| Application source control | No | Yes |
| Application testing | No | Yes |
| Deployment environment configuration | Yes | No |
| Infrastructure resource allocation | Yes | No |
| Deployment execution | Yes | No |
| Infrastructure monitoring | Yes | No |
| Application functionality validation | Shared | Shared |
| Application code remediation | No | Yes |
| Infrastructure remediation | Yes | No |
Responsibilities may vary where additional development or operational services are included in the service agreement.
Deployment Methods
Applications may be delivered using an approved source code or application artifact delivery method.
The delivery method must be established before the initial deployment.
Git Repository Integration
Applications maintained in a Git repository may be configured for repository-based deployment.
Repository integration may support:
- Client-owned private repositories
- Client-owned public repositories
- Approved repository service providers
- Branch-specific deployments
- Commit-specific deployments
- Release-based deployment workflows
Repository provider compatibility and access requirements must be confirmed during onboarding.
Application Artifact Delivery
Applications may also be delivered through an approved application artifact.
Examples include:
- Compiled application files
- Generated static websites
- Versioned application archives
- Prebuilt application packages
The artifact format, delivery method, and deployment procedure must be agreed with your account manager.
Repository Integration
For repository-based deployments, provide the following information to your account manager:
| Configuration | Example |
|---|---|
| Repository URL | https://git.example.com/company/application.git |
| Deployment branch | main |
| Application directory | / |
| Dependency installation command | npm ci |
| Build command | npm run build |
| Startup command | npm run start |
| Static output directory | dist, where applicable |
| Runtime | Node.js 22 |
| Internal application port | 3000, where applicable |
These values are illustrative.
Provide the actual requirements for your application.
Private Repository Access
Private repository integration requires an approved authentication mechanism.
Depending on the repository provider, this may include:
- Read-only SSH deployment keys
- Scoped repository access tokens
- Repository application integrations
- Other approved access methods
Zanthem will provide the information necessary to authorize access to the assigned repository.
Repository access should be restricted to the minimum permissions required for deployment.
SSH Deployment Key Integration
Where SSH deployment keys are supported, Zanthem may provide a public deployment key.
The general configuration process is:
- Obtain the public deployment key from Zanthem.
- Open the repository's access settings.
- Locate the deployment key configuration.
- Add the supplied public key.
- Restrict the key to read-only access.
- Notify your account manager.
- Zanthem verifies repository connectivity.
Your repository provider's interface may differ from this general procedure.
:::warning Repository credentials
Do not provide personal account passwords or unrestricted administrative credentials for repository access.
Repository access should use dedicated, appropriately scoped credentials.
:::
Deployment Branches
Applications may be configured to deploy from a designated repository branch.
Example branch configuration:
| Branch | Environment |
|---|---|
main | Production |
develop | Development |
staging | Staging |
This configuration is illustrative.
Separate application environments must be provisioned and approved before use.
A branch does not automatically create a corresponding hosting environment.
Initial Application Deployment
The initial application deployment generally consists of:
- Validate application requirements.
- Establish repository or artifact access.
- Configure the deployment environment.
- Configure required environment variables.
- Install application dependencies.
- Build the application, where required.
- Start or publish the application.
- Perform infrastructure connectivity checks.
- Validate the application endpoint.
- Coordinate client acceptance testing.
Additional procedures may apply to applications with specialized requirements.
Application Build Process
Applications requiring a production build must provide reproducible build instructions.
Example Node.js Build
npm ci
npm run build
Example Static Website
Install command: npm ci
Build command: npm run build
Output directory: build
Example Server-Side Application
Install command: npm ci
Build command: npm run build
Startup command: npm run start
Internal port: 3000
Zanthem configures the deployment environment using the agreed application requirements.
Applications are not required to include custom container definitions unless specifically agreed as part of a specialized deployment configuration.
Deployment Triggers
Deployment triggers determine when an application update is deployed.
Depending on the established configuration, deployments may be initiated through:
- Approved source repository updates
- Deployment webhooks
- Release or commit selection
- Requests submitted through your account manager
Automatic deployments must be explicitly configured for the assigned application.
Automatic Deployments
Where enabled, automatic deployments allow approved source repository changes to initiate the deployment process.
A typical automatic deployment workflow is:
- Application changes are developed and tested.
- Changes are committed to the source repository.
- Changes are merged into the configured deployment branch.
- The configured deployment trigger notifies Zanthem's hosting infrastructure.
- The application build and deployment process executes.
- Deployment health is evaluated according to the configured checks.
Automatic deployment does not provide clients with access to infrastructure management interfaces.
Example Repository Update
git add .
git commit -m "Update application"
git push origin main
This example assumes that main has been
approved as the application's deployment branch.
Pushing changes to an approved deployment branch may initiate a production deployment.
:::warning Production deployments
Do not push untested changes directly to a production deployment branch.
Organizations should implement appropriate code review, testing, and branch protection procedures before enabling automatic production deployments.
:::
Webhook Integration
Applications using repository-triggered deployments may require a webhook.
If applicable, your account manager will provide:
| Configuration | Description |
|---|---|
| Webhook URL | Assigned deployment notification endpoint. |
| Event type | Repository event that initiates deployment processing. |
| Branch configuration | Approved deployment branch, where applicable. |
| Authentication configuration | Required webhook authentication or verification mechanism. |
| Content type | Required webhook request format, where applicable. |
General Configuration Procedure
- Open the webhook settings for your source repository.
- Create a new webhook.
- Enter the endpoint provided by Zanthem.
- Configure the supplied authentication information.
- Select the approved repository events.
- Save the webhook configuration.
- Notify your account manager.
- Coordinate a deployment trigger test.
Webhook authentication and event configuration depend on the source repository provider and assigned deployment method.
Do not expose webhook credentials or sensitive deployment endpoints in public documentation or application source code.
Coordinated Deployments
Applications that do not use automatic deployments may be updated through a coordinated deployment request.
Provide your account manager with:
- Application identifier
- Target application environment
- Requested application version
- Repository commit, branch, or release identifier
- Requested deployment window
- Relevant configuration changes
- Expected application impact
- Rollback considerations
Example Deployment Request
Application: Example Customer Portal
Environment: Production
Release: v1.4.0
Source branch: main
Requested deployment: Coordinated release window
Configuration changes: None
Persistent data changes: None
Rollback target: v1.3.2
Deployment scheduling is coordinated according to the applicable service agreement.
Application Environments
Separate application environments may be provisioned where required.
| Environment | Purpose |
|---|---|
| Development | Application development and integration testing. |
| Staging | Pre-production testing and release validation. |
| Production | Live application operation. |
Each environment may have independent:
- Application endpoints
- Environment variables
- Authentication client configuration
- Deployment branches
- Resource allocations
- Persistent storage
- External service dependencies
Additional environments must be requested through your account manager.
Production credentials should not be reused in development or staging environments.
Environment Variable Changes
Application configuration changes may require updates to the assigned deployment environment.
When requesting a configuration change, identify:
- Application identifier
- Target environment
- Environment variable name
- Whether the variable is required at build time or runtime
- Whether the value is confidential
- Whether a rebuild or restart is required
Confidential values must be supplied through an approved secure communication method.
Changes to build-time variables may require rebuilding the application.
Changes to runtime variables may require an application restart or redeployment.
Persistent Data Changes
Application deployments may include changes affecting persistent application data.
Examples include:
- Data format changes
- Schema migrations
- Storage directory changes
- Application state transformations
Communicate these requirements before deployment.
Applications should account for the compatibility of persistent data with both the new application version and any potential rollback version.
Rolling back application source code does not necessarily reverse changes to persistent data.
Deployment Status
Deployment status may be communicated through your assigned account manager or another approved notification method.
Typical deployment states include:
| Status | Description |
|---|---|
| Requested | Deployment has been requested. |
| Queued | Deployment is awaiting execution. |
| Building | Application dependencies or build artifacts are being prepared. |
| Deploying | Application version is being published or started. |
| Validating | Configured deployment checks are being performed. |
| Successful | Deployment has completed its configured checks. |
| Failed | Deployment could not be completed successfully. |
| Rolled back | A previous application version has been restored. |
A successful infrastructure deployment does not guarantee that every application feature is functioning correctly.
Clients remain responsible for validating application-specific functionality.
Deployment Validation
After an application deployment, validate the functionality relevant to the release.
Recommended validation includes:
- Application endpoint accessibility
- HTTPS connectivity
- Application navigation
- Static asset availability
- User authentication
- Application-level authorization
- External API connectivity
- Application-specific functionality
- Persistent data accessibility
Application-specific acceptance criteria should be established by the client.
Failed Deployments
Deployments may fail for reasons including:
- Missing dependencies
- Invalid build configuration
- Unsupported runtime version
- Application compilation errors
- Missing environment variables
- Application startup failure
- Incorrect listening port
- Failed health checks
- External dependency failures
Zanthem will determine whether the failure is related to infrastructure configuration or application functionality.
Application-related failures may require changes to the client-maintained source code.
A failed deployment may leave the previous application version active, depending on the configured deployment procedure.
Do not assume that every failed deployment is non-disruptive.
Deployment Logs
Deployment logs may contain information necessary to diagnose application build or startup failures.
Clients may request relevant deployment diagnostics through their account manager.
Zanthem may sanitize infrastructure-specific or confidential information before providing diagnostic logs.
Clients do not require direct access to infrastructure management interfaces to receive deployment diagnostics.
Application Rollbacks
A rollback restores a previously approved application version where supported by the deployment configuration.
When requesting a rollback, provide:
- Application identifier
- Affected environment
- Current application version
- Requested rollback version
- Reason for rollback
- Known configuration or persistent data changes
Rollback availability depends on factors including:
- Availability of the previous source revision
- Availability of previous application artifacts
- Runtime compatibility
- Environment configuration compatibility
- Persistent data compatibility
:::warning Persistent data compatibility
Restoring a previous application version does not automatically restore previously modified persistent data.
Applications that perform irreversible data changes may require a separate recovery procedure.
Coordinate rollback requirements with your account manager before deployments involving significant data changes.
:::
Application Maintenance
Applications should be maintained to address:
- Application security vulnerabilities
- Dependency security vulnerabilities
- Runtime compatibility requirements
- Application performance issues
- Application functionality defects
Zanthem may identify infrastructure or application compatibility concerns that require client-side changes.
Application remediation remains the client's responsibility unless otherwise established in the service agreement.
Requesting Deployment Configuration Changes
Contact your account manager to request:
- Deployment branch changes
- Repository changes
- Build command changes
- Runtime version changes
- Environment variable changes
- Automatic deployment configuration
- Additional application environments
- Resource allocation changes
- Application routing changes
- Deployment rollback
Infrastructure configuration changes must be performed by authorized Zanthem personnel.