Skip to main content

CI/CD Export

Export the variables from your active .env file in the exact format required by your CI/CD platform.

Running the Export

Click 🚀 Export for CI/CD in the Pro Tools panel, or run ENV Manager Pro: Export for CI/CD from the Command Palette.

A quick-pick menu appears with all supported formats:

Supported Formats

GitHub Actions

env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
API_KEY: ${{ secrets.API_KEY }}

Generates a YAML snippet you paste into your .github/workflows/*.yml file.

GitLab CI

variables:
DATABASE_URL: "$DATABASE_URL"
API_KEY: "$API_KEY"

CircleCI

environment:
DATABASE_URL: $DATABASE_URL
API_KEY: $API_KEY

Dockerfile (ARG / ENV)

ARG DATABASE_URL
ARG API_KEY
ENV DATABASE_URL=$DATABASE_URL
ENV API_KEY=$API_KEY

Kubernetes Secret (base64)

apiVersion: v1
kind: Secret
metadata:
name: app-secrets
type: Opaque
data:
DATABASE_URL: <base64-encoded-value>
API_KEY: <base64-encoded-value>

Values are base64-encoded automatically.

Shell Export

export DATABASE_URL="postgres://localhost/mydb"
export API_KEY="sk-abc123"

Output

After selecting a format, the export opens in a new VS Code editor tab with the language set appropriately (YAML, Dockerfile, bash). From there you can:

  • Copy the content to paste into your CI configuration
  • Save it as a new file
  • Use VS Code's built-in diff to compare with an existing config