FTL: 光速以上的部署
FTL is a lightweight deployment tool designed to simplify cloud deployments without the complexity of traditional CI/CD pipelines or container orchestration platforms. It provides automated, zero-downtime deployments through a single YAML configuration file.
For comprehensive documentation, visit https://ftl-deploy.org
Choose one of the following installation methods:
brew tap yarlson/ftl
brew install ftlcurl -L https://github.com/yarlson/ftl/releases/latest/download/ftl_$(uname -s)_$(uname -m).tar.gz | tar xz
sudo mv ftl /usr/local/bin/go install github.com/yarlson/ftl@latestAfter installing FTL, verify it's working correctly by checking the version:
ftl versionCreate an ftl.yaml file in your project root:
…You can validate your configuration at any time using:
ftl validate${VAR_NAME}${VAR_NAME:-default_value}Deploy automatically using the official FTL GitHub Action:
name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Deploy with FTL
uses: yarlson/ftl-deploy-action@v1
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}For complete GitHub Actions documentation, see the integration guide or visit the action repository.
# Validate your ftl.yaml configuration
ftl validateftl setupFTL supports two deployment modes:
services:
- name: web
path: ./src # Path to directory containing Dockerfileservices:
- name: web
image: registry.example.com/my-app:latest
path: ./srcBuild command:
ftl build [--skip-push]ftl deploy# Stream all logs
ftl logs -f
# View specific service logs
ftl logs my-app -n 150# Create tunnels for all dependencies
ftl tunnels# Clone repository
git clone https://github.com/yarlson/ftl.git
# Install dependencies
cd ftl
go mod download
# Run tests
go test ./...Visit our ftl-examples repository for complete implementation examples:
Configuration Validation Errors
Registry Authentication Failures
SSH Connection Issues
Please ensure:
Report security vulnerabilities by opening an issue with the "security" label. We take all security reports seriously and will respond promptly.
This project is licensed under the MIT License - see the LICENSE file for details.
暂无开放 Issues,或尚未同步最近议题。