Private, fyrst-controlled Symfony Flex endpoint for fyrst packages (starting with fyrst/shopware-cd).
This is the Shopware-style recipes repo for fyrst: vendor directories live at the repository root (fyrst/shopware-cd/1.0/), and a GitHub Action compiles them into a Flex index. Shops can consume recipes here without waiting on symfony/recipes-contrib.
symfony/recipes-contrib#2049 may still exist as the upstream contrib PR. This repository is the fyrst-owned path: we can ship and iterate independently of that review queue.
Same idea as shopware/recipes.
After the Flex compiler workflow has run on main:
https://raw.githubusercontent.com/fyrst-dev/recipes/flex/main/index.json
The workflow writes the compiled index to the flex/main branch (force-pushed on every update). That URL is a stub {} until the first successful compiler run, then it lists fyrst/shopware-cd and recipe payloads.
Prepend this endpoint before Shopware recipes and flex://defaults so fyrst recipes win:
{
"extra": {
"symfony": {
"allow-contrib": true,
"endpoint": [
"https://raw.githubusercontent.com/fyrst-dev/recipes/flex/main/index.json",
"https://raw.githubusercontent.com/shopware/recipes/flex/main/index.json",
"flex://defaults"
]
}
}
}Equivalent CLI:
composer config extra.symfony.allow-contrib true
composer config --json extra.symfony.endpoint '["https://raw.githubusercontent.com/fyrst-dev/recipes/flex/main/index.json","https://raw.githubusercontent.com/shopware/recipes/flex/main/index.json","flex://defaults"]'shopware-cli project create <shop>
cd <shop>
# configure endpoint as above (composer config / composer.json)
composer require shopware/docker shopware/deployment-helper fyrst/shopware-cdshopware/docker is required in that same command: it copies docker/Dockerfile, which CI and CD Compose default to. This recipe does not ship a root Dockerfile. A missing docker/Dockerfile means shopware/docker was skipped.
shopware-cli project create owns compose.yaml, .gitignore, and .shopware-project.yml (create’s default; .yaml is also accepted — do not rename). This recipe does not copy them.
- Local:
shopware-cli project devand the CLI-managed shop-rootcompose.yaml. Live → laptop uploads:fyrst-cli shopware sync local(--data allis refused). - VPS/CD: files under
deploy/(Compose templates, edge). CI runsfyrst-cli shopware deploy release. Post-deploy probe: default isAPP_URL(trailing slash stripped) +/api/_info/health-check(same path as the Composewebhealthcheck). Override withDEPLOY_HEALTH_URL(full URL as-is, e.g. loopback). Live requires a resolvable probe URL unless--allow-no-deploy-health/ALLOW_NO_DEPLOY_HEALTH=1. Non-live: the probe is optional when no URL can be resolved. Do not useSMOKE_URLorROLLBACK_ON_SMOKE_FAIL; removed. Auto-rollback usesROLLBACK_ON_FAIL. Dump staysshopware-cli project dump. Create and image build stay out of this recipe.
Flex copies CI, deploy/ (CD Compose, edge), .dockerignore, and .env.example from the package overlay/ into the shop root. The Flex env configurator may append a ###> fyrst/shopware-cd ### block to .env (empty shop id, SHOPWARE_DATA_BASE=/var/lib/shopware/data). It does not put SHOPWARE_DEPLOY_ENV in that shared block (host .env.local owns deploy env and COMPOSE_PROJECT_NAME), does not overwrite create’s whole .env, and does not put secrets in that block. Then run fyrst-cli shopware env init --shop-id <slug> (see deploy/README.md). That command always comments out create’s COMPOSE_PROJECT_NAME in committed .env. It does not write COMPOSE_PROJECT_NAME or a real SHOPWARE_DEPLOY_ENV into committed .env. It writes SHOPWARE_DEPLOY_ENV and COMPOSE_PROJECT_NAME=<shop-id>-<env> into gitignored .env.local (local acme-dev, VPS acme-live — same pattern, not the folder basename and not shopware-<shop-id>) and sets compose.override.yaml name: so shopware-cli project dev sees that project name. VPS Compose naming SoT is deploy/compose.yaml name: ${SHOPWARE_SHOP_ID}-${SHOPWARE_DEPLOY_ENV} with --env-file .env then --env-file .env.local then --env-file .env.prod (if present); fyrst-cli passes those same --env-file flags. Raw operator Compose must use those same --env-file flags (not only .env). It does not generate APP_SECRET (shopware-cli project create already writes it). Install fyrst-cli 0.1.0+ on each VPS. Commit the copied files; vendor/ stays gitignored.
- Change Flex metadata under
fyrst/<package>/<version>/in this repo (manifest.json,post-install.txt). Overlay files live in the Packagist packageoverlay/, not here. - Push (or merge) to
main. - The Update Flex endpoint workflow rebuilds
flex/main(index.json). - In each shop:
composer update fyrst/shopware-cd
composer recipes:update fyrst/shopware-cd.github/workflows/flex-update.yml calls symfony/recipes callable-flex-update.yml with contents: write so GITHUB_TOKEN can force-push the flex/main branch.
- The callable workflow runs
git switch flex/main. That branch must already exist (orphan branch with a stubindex.json). Without it, the first run fails withfatal: invalid reference: flex/main. - The first push to
mainthat includes this workflow must run Update Flex endpoint. Until that job succeeds, shops should not rely on the endpoint. - If GitHub Actions is disabled for the
fyrst-devorg or this repository, the compiler never runs and shops cannot load recipes. Enable Actions (org Settings → Actions → General, and the same at repo level), then re-run the workflow or push an empty commit onmain. - Repo Settings → Actions → General → Workflow permissions should allow the job’s
permissions: contents: write(do not force a read-only token that cannot pushflex/main). - Closed pull requests are cleaned up by
.github/workflows/flex-cleanup.yml(drops the temporaryflex/pull-<n>testing ref).
| Path | Role |
|---|---|
fyrst/shopware-cd/1.0/ |
Thin Flex recipe for Packagist package fyrst/shopware-cd (manifest.json + post-install.txt). Overlay files live in the package under overlay/; Flex copy-from-package maps them onto the shop root. bundles + env stay here. Operators run fyrst-cli 0.1.0+ (install on each VPS). Flex env appends safe SoT keys to .env. Does not copy compose.yaml, .gitignore, or .shopware-project.yml / .yaml (shopware-cli project create / CLI). Does not own create, image build, or dump. |
.github/workflows/flex-update.yml |
Compiles recipes → flex/main |
.github/workflows/flex-cleanup.yml |
Deletes Flex PR test refs |
manifest.json has no aliases. Recipe YAML uses .yaml names and 4-space indent.