test: use docker buildx bake

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-08-29 20:19:58 +00:00
parent b0757a8b0e
commit c81c21478a
5 changed files with 7 additions and 20 deletions

View File

@@ -10,7 +10,7 @@ services:
- ./var/repos:/srv/git
anubis:
image: ko.local/anubis
image: ghcr.io/techarohq/anubis:devel-docker
environment:
BIND: ":8005"
TARGET: http://cgit:80

View File

@@ -9,9 +9,7 @@ set -u
(
cd ../.. && \
npm ci && \
npm run assets \
ko build --platform=all --base-import-paths --tags="latest" --image-user=1000 --image-annotation="" --image-label="" ./cmd/anubis -L
docker buildx bake
)
rm -rf ./var/repos ./var/clones

View File

@@ -9,11 +9,10 @@ set -u
(
cd ../.. && \
npm ci && \
npm run assets \
ko build --platform=all --base-import-paths --tags="latest" --image-user=1000 --image-annotation="" --image-label="" ./cmd/anubis -L
docker buildx bake
)
rm -rf ./var/repos ./var/foo
mkdir -p ./var/repos

View File

@@ -9,11 +9,10 @@ set -u
(
cd ../.. && \
npm ci && \
npm run assets \
ko build --platform=all --base-import-paths --tags="latest" --image-user=1000 --image-annotation="" --image-label="" ./cmd/anubis -L
docker buildx bake
)
docker compose up -d
attempt=1

View File

@@ -17,16 +17,7 @@ function build_anubis_ko() {
cd $REPO_ROOT && npm ci && npm run assets
)
(
cd $REPO_ROOT &&
VERSION=devel ko build \
--platform=all \
--base-import-paths \
--tags="latest" \
--image-user=1000 \
--image-annotation="" \
--image-label="" \
./cmd/anubis \
--local
cd $REPO_ROOT && docker buildx bake
)
}