Build and deploy Flutter web applications to AWS S3 + CloudFront with Cloudflare DNS. Extends the static web template with Flutter-specific build steps.
Go to Settings > CI/CD > General pipelines and set CI/CD configuration file to:
https://gitlab-ci-yaml-template.enouvo.com/flutter-web/.gitlab-ci.yml
include: - 'https://gitlab-ci-yaml-template.enouvo.com/flutter-web/.gitlab-ci.yml'
| Variable | Description |
|---|---|
WEB_URL | Public URL for the deployed app |
| Variable | Default | Description |
|---|---|---|
FLUTTER_VERSION | 3.29.2 | Flutter SDK version |
DIST_DIRECTORY | $CI_PROJECT_BUILD_DIR/build | Build output directory |
APP_BUILD_CMD | dart run melos build-web-$branch -- -o $DIST_DIRECTORY | Custom build command |
AWS_BUCKET | auto-discovered from WEB_URL | S3 bucket name |
AWS_OIDC_ROLE_ARN | AWS role ARN for OIDC auth |
Automatically uploads sourcemaps after build if configured:
| Variable | Description |
|---|---|
SENTRY_AUTH_TOKEN | Sentry auth token (masked) |
SENTRY_ORG | Organization slug |
SENTRY_PROJECT | Project slug |
SENTRY_URL | Self-hosted URL (default: https://sentry.io) |
flutter pub getdist/ and build_artifacts/test → build → deploy → notify
SKIP_DEV_BUILD=true SKIP_STAGING_DEPLOY=true