Ship install/update scripts in the migrate image; no repo clone on hosts
release gate / check (push) Failing after 6m45s
release / smoke (push) Successful in 10m18s
release / publish (push) Failing after 9m55s

This commit is contained in:
2026-10-30 12:03:07 -06:00
parent fc9b6c2c42
commit 1dfd41986c
8 changed files with 101 additions and 81 deletions
+10 -1
View File
@@ -55,8 +55,15 @@ jobs:
go vet ./internal/... .
go test ./internal/...
- uses: docker/setup-buildx-action@v3
- name: Build the migrate image
run: docker build -t superbrain-migrate:smoke db/
run: |
docker buildx build --load --build-context deploy=deploy/federated \
-t superbrain-migrate:smoke db/
# Hosts install/update from these baked files — they must be there.
docker run --rm superbrain-migrate:smoke sh -c \
'for f in install.sh update.sh lib-superbrain.sh service upgrade-pre; do test -f /deploy/$f || { echo "missing /deploy/$f"; exit 1; }; done'
- name: Bootstrap a fresh database with the image
run: |
@@ -119,6 +126,8 @@ jobs:
with:
context: db
file: db/Dockerfile
build-contexts: |
deploy=deploy/federated
platforms: linux/amd64,linux/arm64
push: true
tags: |