Ship install/update scripts in the migrate image; no repo clone on hosts
This commit is contained in:
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user