# Woodpecker CI/CD Environment Variables Example # Copy this file to your Woodpecker repository settings # DO NOT commit actual secrets to git # ============================================ # Docker Registry Configuration # ============================================ # Registry base URL (no protocol, no trailing slash) # Examples: # - Docker Hub: docker.io # - GitHub: ghcr.io # - GitLab: registry.gitlab.com # - Self-hosted: registry.example.com REGISTRY_URL=registry.example.com # Full image repository path # Examples: # - Docker Hub: docker.io/username/mifi-ventures-landing # - GitHub: ghcr.io/username/mifi-ventures-landing # - Self-hosted: registry.example.com/mifi-ventures-landing REGISTRY_REPO=registry.example.com/mifi-ventures-landing # Registry username REGISTRY_USERNAME=myusername # Registry password/token (SET AS SECRET, NOT ENVIRONMENT VARIABLE) # This should be set in Woodpecker Secrets as: registry_password # REGISTRY_PASSWORD= # ============================================ # Deployment Configuration # ============================================ # Container name on VPS CONTAINER_NAME=mifi-ventures-landing # Host port to expose (container always uses 80 internally) # Examples: # - Direct: 80 (if no reverse proxy) # - Proxied: 8080 (if using Traefik/Nginx) APP_PORT=8080 # ============================================ # SSH Deployment Secrets (SET IN WOODPECKER SECRETS) # ============================================ # These should NEVER be set as environment variables # Set them in Woodpecker Secrets UI instead # deploy_host: Linode VPS IP or hostname # Example: 123.45.67.89 or vps.example.com # deploy_username: SSH username # Example: deploy or root # deploy_ssh_key: Private SSH key (multi-line) # Example: # -----BEGIN OPENSSH PRIVATE KEY----- # b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW # ... # -----END OPENSSH PRIVATE KEY----- # deploy_port: SSH port # Example: 22 (default) # ============================================ # Notes # ============================================ # # Secrets vs Environment Variables: # - SECRETS: Sensitive data (passwords, keys) - set in Woodpecker Secrets # - ENV VARS: Non-sensitive config (URLs, usernames) - can be in Variables or here # # How to use: # 1. Copy this file: cp .env.example .env # 2. Fill in your values in .env (for local testing only) # 3. Add secrets to Woodpecker UI (never commit) # 4. Add env vars to Woodpecker Variables or repository settings # # Local testing: # - Build: docker build -t test . # - Run: docker run -d -p 8080:80 --name test test # - Test: curl http://localhost:8080 # - Stop: docker stop test && docker rm test