mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 18:19:43 +00:00
Merge pull request #26 from jjbrunton/hotfix/admin-docker-context
fix(admin): restore admin docker build context, allow hotfix branches into main
This commit is contained in:
3 files changed
+23
-6
No files matched your search
@@ -39,3 +39,11 @@ terraform
|
|||||||
.claude
|
.claude
|
||||||
.codex
|
.codex
|
||||||
.ralph
|
.ralph
|
||||||
|
|
||||||
|
# The admin app builds from this same monorepo context (apps/admin/Dockerfile).
|
||||||
|
!apps/admin
|
||||||
|
!apps/admin/**
|
||||||
|
|
||||||
|
# Host build artefacts must never leak into any image context.
|
||||||
|
**/node_modules
|
||||||
|
**/dist
|
||||||
@@ -24,9 +24,14 @@ jobs:
|
|||||||
echo "master is frozen; target staging or main" >&2
|
echo "master is frozen; target staging or main" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ "$BASE_BRANCH" = "main" ] && [ "$HEAD_BRANCH" != "staging" ]; then
|
if [ "$BASE_BRANCH" = "main" ]; then
|
||||||
echo "Only staging may be promoted to main" >&2
|
case "$HEAD_BRANCH" in
|
||||||
|
staging|hotfix/*|release/*) ;;
|
||||||
|
*)
|
||||||
|
echo "main takes staging promotions, or a hotfix/* or release/* branch for direct work" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
if [ "$BASE_BRANCH" != "staging" ] && [ "$BASE_BRANCH" != "main" ]; then
|
if [ "$BASE_BRANCH" != "staging" ] && [ "$BASE_BRANCH" != "main" ]; then
|
||||||
echo "Feature pull requests target staging; promotions target main" >&2
|
echo "Feature pull requests target staging; promotions target main" >&2
|
||||||
|
|||||||
@@ -14,10 +14,14 @@ not deploy the retired Supabase data plane.
|
|||||||
| `master` | frozen legacy default | none | none |
|
| `master` | frozen legacy default | none | none |
|
||||||
|
|
||||||
Normal feature pull requests target `staging`. After CI and authenticated staging
|
Normal feature pull requests target `staging`. After CI and authenticated staging
|
||||||
acceptance pass, open a promotion pull request from `staging` to `main`. Do not
|
acceptance pass, open a promotion pull request from `staging` to `main`. Prefer
|
||||||
add production-only commits to `main`: production should run the exact commit
|
that route: production then runs the exact commit already exercised in staging.
|
||||||
already exercised in staging. Direct pushes to either deployment branch are for
|
|
||||||
explicit incident recovery only.
|
When production needs a change that cannot wait for the next promotion, open a
|
||||||
|
pull request into `main` from a `hotfix/*` or `release/*` branch. CI enforces
|
||||||
|
that naming so a direct-to-main change is always deliberate and visible. Land
|
||||||
|
the same commit on `staging` too, or the next promotion will revert it. Direct
|
||||||
|
pushes to either deployment branch remain blocked by branch protection.
|
||||||
|
|
||||||
Each Dokploy Compose application is connected to `jjbrunton/Sauci`, watches its
|
Each Dokploy Compose application is connected to `jjbrunton/Sauci`, watches its
|
||||||
single branch with push-triggered automatic deployment, and uses
|
single branch with push-triggered automatic deployment, and uses
|
||||||
|
|||||||
Reference in new issue
Block a user