Skip to content

Commit

Permalink
update bats to alpine:3.20
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <[email protected]>
  • Loading branch information
tonistiigi committed Jun 20, 2024
1 parent 181d5de commit 6d7ca78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions util/bats-assert/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#syntax=docker/dockerfile:1.8
#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
WORKDIR /work
RUN git clone --bare https://github.com/ztombol/bats-support && \
Expand All @@ -19,7 +21,7 @@ RUN echo 'source "$(dirname "${BASH_SOURCE[0]}")/bats-support/load.bash"' > /out
FROM scratch AS release
COPY --from=build /out /

FROM alpine:3.19 AS test-gen
FROM alpine:${ALPINE_VERSION} AS test-gen
RUN apk add --no-cache bats
WORKDIR /work
COPY --from=release . .
Expand Down
2 changes: 1 addition & 1 deletion util/bats-assert/test.bats.golden
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ not ok 5 run-fail

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.
(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)

0 comments on commit 6d7ca78

Please sign in to comment.