Skip to content

Instantly share code, notes, and snippets.

@possebon
Created December 19, 2025 17:51
Show Gist options
  • Select an option

  • Save possebon/e8dd16535b6119bca0a166f21888fd32 to your computer and use it in GitHub Desktop.

Select an option

Save possebon/e8dd16535b6119bca0a166f21888fd32 to your computer and use it in GitHub Desktop.
Open Source Infrastructure Stack - 19-deployment-pipeline-commands

Complete Deployment Pipeline

# Step 1: Bootstrap Infisical credentials
export INFISICAL_CLIENT_ID="your-client-id"
export INFISICAL_CLIENT_SECRET="your-client-secret"

# Step 2: Provision infrastructure
cd infrastructure/opentofu
tofu init
tofu apply

# Step 3: Configure server
ansible-playbook playbooks/site.yml

# Step 4: Deploy Infisical Agent
ansible-playbook playbooks/deploy-infisical-agent.yml

# Step 5: Deploy services
ansible-playbook playbooks/deploy-env-stack.yml -e env=production

From zero to production in 5 steps. The entire infrastructure can be reproduced from scratch using these commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment