Skip to main content
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog

Loading…

Servers Are Up

Your apps, automation and data on hardware we own. Build a private stack with predictable capacity and access through your dashboard, API or SSH.

SLA with service creditsOwned hardwareUS-based

Make room for your next idea

Explore the capacity, apps and access options that fit your workload. Check current availability and your total before you buy.

Sign up freeView Pricing

Products

  • Linux VPS
  • Windows VPS
  • Cloud & SaaS Services
  • Cloud Storage (Azure)
  • Virtual Datacenter
  • AI & Agent Hosting
  • Containers
  • Instant Apps
  • Software Platforms
  • Network builder
  • Game Servers
  • Free Game Servers
  • Pricing

Resources

  • Free Network Tools
  • 2026 Pricing Benchmark
  • Live SVG Badges
  • Latency & Speed Test
  • Guides & Tutorials
  • Documentation
  • API Reference
  • MCP Server
  • CLI & SDKs
  • OpenAPI & llms.txt
  • Use Cases
  • Free Migration
  • Uptime & Reliability
  • Datacenter
  • System Status
  • Network
  • Provider Comparisons Hub
  • Compare Providers

Company

  • About Us
  • Enterprise
  • Security Architecture
  • Trust Center
  • Blog
  • FAQ
  • Compliance
  • Startup Program
  • Open-Source Sponsorship
  • Press & Media Kit
  • Referral Program
  • Help Center
  • Contact Us
© Servers Are Up
TermsPrivacySLARefund PolicyDPAAcceptable Use
Service information
Docs
  • Documentation Hub
  • Technical Knowledge Library
    Runbooks & 187 Blueprints
  • Choose a Product
    VMs, Containers & Cloud
  • First Linux Server
    SSH, Firewall & Apps
  • Windows Server 2025
    BYOL & Remote Desktop
  • Remote Access
  • Troubleshooting
  • FAQ
  • All Product Guides
    29 Step-by-Step Guides
  • Cloud & SaaS Catalog
    112 Cloud & SaaS Offerings
  • Azure Cloud Storage
    Hot/Cool/Archive & WORM
  • Resource Manager & RBAC
    Groups, Tags & Locks
  • Multi-Model Cloud DB
    JSONB, SQL & pgvector
  • Cloud Identity & ZTNA
    OIDC, SCIM & PIM
  • Key Vault & KMS
    Secrets & Envelope Keys
  • Cloud SIEM, SOAR & DLP
    Posture & Threat Response
  • API Gateway & Cloud DNS
    Edge WAF & DNS Zones
  • Serverless, Workflows & IoT
    Functions, Queues & DAGs
  • SaaS, Governance & Vault
    Budgets & Off-Host GRS
  • Linux Systems & Kernel
    SSH, UFW, sysctl & OOM
  • Self-Hosted Apps & Stacks
    Caddy, Nextcloud & Auth
  • Build Web Apps with AI
  • Next.js and React
  • TypeScript and Node.js
  • npm and Tooling
  • Data and APIs
  • Deploy and Operate
  • Tutorials
  • Infrastructure
  • Automation & Regions
  • API Overview
  • API v1 Reference
    Endpoints & 23 Scopes
  • MCP Server
    129 AI Agent Tools
  • Swagger / OpenAPI 3.1
  • API Playground
  • Versioning & Sunset
  • API Token Security
    Authentication & Tokens
  • Instances API
    Compute Resources
  • Networking API
    Networks & Ports
  • Storage API Availability
    Volumes & Backups
  • Webhooks & Events
    Event Notifications
  • Rate Limits & Best Practices
    Throttling & Retries
  • sau CLI Reference
    34 Commands (v0.2)
  • Browser Web CLI
  • SDKs
  • Infrastructure as Code
    Terraform & Ansible
  • Code Examples
  • CLI & SDK Guides
  • Security Guides
  • Security at a Glance
  • Zero Trust Architecture
  • Live Trust Center
  • Compliance
Need help?

Loading documentation...

Documentation/automation

GitLab CI/CD Integration

Automate build, test, and SSH or REST API deployment stages to a Servers Are Up Linux server from GitLab CI/CD.

Intermediate
8 min
Updated 2026-11-11

Deploy Ready-to-Run Infrastructure in Seconds

Linux VMs from $6/mo · Pooled Virtual Datacenters from $12/mo · Use code WELCOME20 for 20% off your first order.

Browse ServersView Pricing

Deploy tested artifacts from GitLab CI/CD (.gitlab-ci.yml) to an existing Linux server on Servers Are Up using pinned OpenSSH keys or scoped v1 REST API tokens.

What you can create today: Buy any product marked Available in checkout and it is set up automatically; products marked Coming soon have no checkout yet. The sau CLI does not create instances.

Step 1: Store Protected CI/CD Variables

In your GitLab project, open Settings, choose CI/CD, expand Variables, and add protected variables restricted to your main branch:

  • DEPLOY_HOST — public IPv4 address for your server's port forward
  • DEPLOY_PORT — forwarded TCP port for SSH
  • DEPLOY_USER — non-root deploy user on the server
  • SSH_PRIVATE_KEY — Ed25519 private key (store as a File or masked variable)
  • SSH_KNOWN_HOSTS — pinned output of ssh-keyscan -p PORT HOST

Step 2: Author .gitlab-ci.yml

stages:
  - test
  - deploy

test_app:
  stage: test
  image: node:22-alpine
  script:
    - npm ci
    - npm test

deploy_production:
  stage: deploy
  image: alpine:3.20
  rules:
    - if: $CI_COMMIT_BRANCH == "main"
  before_script:
    - apk add --no-cache openssh-client rsync curl
    - install -m 700 -d ~/.ssh
    - printf '%s
' "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
    - chmod 600 ~/.ssh/id_ed25519
    - printf '%s
' "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
    - chmod 644 ~/.ssh/known_hosts
  script:
    - rsync -az --delete --exclude .git ./ -e "ssh -p $DEPLOY_PORT -i ~/.ssh/id_ed25519" "$DEPLOY_USER@$DEPLOY_HOST:/srv/app/"
    - ssh -p "$DEPLOY_PORT" -i ~/.ssh/id_ed25519 "$DEPLOY_USER@$DEPLOY_HOST" "cd /srv/app && sudo systemctl restart app && curl -fsS http://127.0.0.1:3000/health"

Security Best Practices

  • Restrict SSH port forwards on Network > Firewall to static runner egress IPs when using self-hosted GitLab Runners, or use POST /api/v1/instances/{id}/exec with a scoped sau_... token created under Account settings > API keys.
  • Mark SSH_PRIVATE_KEY as Protected so untrusted merge requests from forks cannot read production credentials.

Next Steps

  • Build CI/CD Pipeline
  • GitHub Actions Integration
  • API Token Security

Related Articles

Build CI/CD Pipeline

Read more

GitHub Actions Integration

Read more

API Token Security

Read more

Frequently Asked Questions

What does the GitLab CI/CD Integration documentation guide cover?
Automate build, test, and SSH or REST API deployment stages to a Servers Are Up Linux server from GitLab CI/CD. It is rated intermediate difficulty (8 min) and applies to Servers Are Up infrastructure and workflows.
Can I manage or automate these steps through the Servers Are Up dashboard, REST API v1, or MCP server?
Yes. Every Servers Are Up server includes browser-based SSH, WebRDP, and VNC console access in the dashboard, plus programmatic control via the REST API v1 (/api/v1) and hosted Model Context Protocol server (/api/mcp/v1) using a scoped Personal Access Token.

Need hands-on help with GitLab CI/CD Integration?

Every Servers Are Up virtual machine and container includes an integrated HTML5 browser-based SSH, RDP, and VNC console in your dashboard, default-off inbound firewall rules with per-IP allow-lists, and full programmatic control via REST API v1 and Model Context Protocol (MCP). Explore our Virtual Datacenter Plans or reach out to Servers Are Up Support.

Was this article helpful?

On this page

Step 1: Store Protected CI/CD VariablesStep 2: Author .gitlab-ci.ymlSecurity Best PracticesNext Steps
Need Live Commands?

Open Aria in Wide Engineering Mode for distro-specific commands, compose tweaks, and isolated environment troubleshooting.

Knowledge Library