mirror of
https://github.com/goreleaser/nfpm
synced 2024-04-30 07:55:09 +02:00
c4ae30d749
* feat: cleanup and simplify the file adding interface * docs: update the configuration docs to focus on the new contents format for specifying files * docs: correct spelling Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
14 lines
590 B
Docker
14 lines
590 B
Docker
FROM fedora
|
|
ARG package
|
|
COPY ${package} /tmp/foo.rpm
|
|
ENV EXPECTVER="Version : 1.0.0~0.1.b1+git.abcdefgh" \
|
|
EXPECTREL="Release : 1"
|
|
RUN rpm -qpi /tmp/foo.rpm | sed -e 's/ \+/ /g' | grep "Version" > found.ver
|
|
RUN rpm -qpi /tmp/foo.rpm | sed -e 's/ \+/ /g' | grep "Release" > found.rel
|
|
RUN export FOUND_VER="$(cat found.ver)" && \
|
|
echo "Expected: ${EXPECTVER}' :: Found: '${FOUND_VER}'" && \
|
|
test "${FOUND_VER}" = "${EXPECTVER}"
|
|
RUN export FOUND_REL="$(cat found.rel)" && \
|
|
echo "Expected: '${EXPECTREL}' :: Found: '${FOUND_REL}'" && \
|
|
test "${FOUND_REL}" = "${EXPECTREL}"
|