mirror of
https://github.com/goreleaser/nfpm
synced 2024-06-06 06:26:37 +02:00
test: use debian as base img
This commit is contained in:
parent
7a465a6ad5
commit
97d7437c51
|
@ -1,4 +1,4 @@
|
|||
FROM ubuntu:20.04 AS test_base
|
||||
FROM debian AS test_base
|
||||
ARG package
|
||||
RUN echo "${package}"
|
||||
COPY ${package} /tmp/foo.deb
|
||||
|
@ -107,8 +107,8 @@ FROM min AS env-var-version
|
|||
ENV EXPECTVER=" Version: 1.0.0~0.1.b1+git.abcdefgh"
|
||||
RUN dpkg --info /tmp/foo.deb | grep "Version" > found
|
||||
RUN export FOUND_VER="$(cat found)" && \
|
||||
echo "Expected: '${EXPECTVER}' :: Found: '${FOUND_VER}'" && \
|
||||
test "${FOUND_VER}" = "${EXPECTVER}"
|
||||
echo "Expected: '${EXPECTVER}' :: Found: '${FOUND_VER}'" && \
|
||||
test "${FOUND_VER}" = "${EXPECTVER}"
|
||||
|
||||
|
||||
# ---- changelog test ----
|
||||
|
@ -180,4 +180,4 @@ RUN test -f /tmp/preinstall-proof
|
|||
RUN cat /tmp/preinstall-proof | grep "Upgrade"
|
||||
|
||||
RUN test -f /tmp/postinstall-proof
|
||||
RUN cat /tmp/postinstall-proof | grep "Upgrade"
|
||||
RUN cat /tmp/postinstall-proof | grep "Upgrade"
|
||||
|
|
Loading…
Reference in New Issue