mirror of
https://github.com/tonistiigi/xx
synced 2025-09-27 11:32:06 +08:00
update bats to alpine:3.20
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
#syntax=docker/dockerfile:1.8
|
#syntax=docker/dockerfile:1.8
|
||||||
#check=error=true
|
#check=error=true
|
||||||
|
|
||||||
FROM --platform=$BUILDPLATFORM alpine AS build
|
ARG ALPINE_VERSION=3.20
|
||||||
|
|
||||||
|
FROM --platform=$BUILDPLATFORM alpine:${ALPINE_VERSION} AS build
|
||||||
RUN apk add --no-cache git
|
RUN apk add --no-cache git
|
||||||
WORKDIR /work
|
WORKDIR /work
|
||||||
RUN git clone --bare https://github.com/ztombol/bats-support && \
|
RUN git clone --bare https://github.com/ztombol/bats-support && \
|
||||||
@@ -19,7 +21,7 @@ RUN echo 'source "$(dirname "${BASH_SOURCE[0]}")/bats-support/load.bash"' > /out
|
|||||||
FROM scratch AS release
|
FROM scratch AS release
|
||||||
COPY --from=build /out /
|
COPY --from=build /out /
|
||||||
|
|
||||||
FROM alpine:3.19 AS test-gen
|
FROM alpine:${ALPINE_VERSION} AS test-gen
|
||||||
RUN apk add --no-cache bats
|
RUN apk add --no-cache bats
|
||||||
WORKDIR /work
|
WORKDIR /work
|
||||||
COPY --from=release . .
|
COPY --from=release . .
|
||||||
|
@@ -27,5 +27,5 @@ not ok 5 run-fail
|
|||||||
|
|
||||||
The following warnings were encountered during tests:
|
The following warnings were encountered during tests:
|
||||||
BW01: `run`'s command `./foobar` exited with code 127, indicating 'Command not found'. Use run's return code checks, e.g. `run -127`, to fix this message.
|
BW01: `run`'s command `./foobar` exited with code 127, indicating 'Command not found'. Use run's return code checks, e.g. `run -127`, to fix this message.
|
||||||
(from function `run' in file /usr/lib/bats-core/test_functions.bash, line 421,
|
(from function `run' in file /usr/lib/bats-core/test_functions.bash, line 426,
|
||||||
in test file test.bats, line 15)
|
in test file test.bats, line 15)
|
||||||
|
Reference in New Issue
Block a user