Skip to content

Commit c81c214

Browse files
committed
test: use docker buildx bake
Signed-off-by: Xe Iaso <[email protected]>
1 parent b0757a8 commit c81c214

File tree

5 files changed

+7
-20
lines changed

5 files changed

+7
-20
lines changed

test/git-clone/docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ services:
1010
- ./var/repos:/srv/git
1111

1212
anubis:
13-
image: ko.local/anubis
13+
image: ghcr.io/techarohq/anubis:devel-docker
1414
environment:
1515
BIND: ":8005"
1616
TARGET: http://cgit:80

test/git-clone/test.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ set -u
99

1010
(
1111
cd ../.. && \
12-
npm ci && \
13-
npm run assets \
14-
ko build --platform=all --base-import-paths --tags="latest" --image-user=1000 --image-annotation="" --image-label="" ./cmd/anubis -L
12+
docker buildx bake
1513
)
1614

1715
rm -rf ./var/repos ./var/clones

test/git-push/test.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ set -u
99

1010
(
1111
cd ../.. && \
12-
npm ci && \
13-
npm run assets \
14-
ko build --platform=all --base-import-paths --tags="latest" --image-user=1000 --image-annotation="" --image-label="" ./cmd/anubis -L
12+
docker buildx bake
1513
)
1614

15+
1716
rm -rf ./var/repos ./var/foo
1817
mkdir -p ./var/repos
1918

test/healthcheck/test.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ set -u
99

1010
(
1111
cd ../.. && \
12-
npm ci && \
13-
npm run assets \
14-
ko build --platform=all --base-import-paths --tags="latest" --image-user=1000 --image-annotation="" --image-label="" ./cmd/anubis -L
12+
docker buildx bake
1513
)
1614

15+
1716
docker compose up -d
1817

1918
attempt=1

test/lib/lib.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,7 @@ function build_anubis_ko() {
1717
cd $REPO_ROOT && npm ci && npm run assets
1818
)
1919
(
20-
cd $REPO_ROOT &&
21-
VERSION=devel ko build \
22-
--platform=all \
23-
--base-import-paths \
24-
--tags="latest" \
25-
--image-user=1000 \
26-
--image-annotation="" \
27-
--image-label="" \
28-
./cmd/anubis \
29-
--local
20+
cd $REPO_ROOT && docker buildx bake
3021
)
3122
}
3223

0 commit comments

Comments
 (0)