mirror of
https://github.com/goreleaser/nfpm
synced 2024-04-30 12:05:11 +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>
11 lines
346 B
Docker
11 lines
346 B
Docker
FROM fedora
|
|
ARG package
|
|
COPY ${package} /tmp/foo.rpm
|
|
RUN test "xz" = "$(rpm -qp --qf '%{PAYLOADCOMPRESSOR}' /tmp/foo.rpm)"
|
|
RUN rpm -ivh /tmp/foo.rpm
|
|
RUN test -e /usr/local/bin/fake
|
|
RUN test -f /etc/foo/whatever.conf
|
|
RUN echo wat >> /etc/foo/whatever.conf
|
|
RUN rpm -e foo
|
|
RUN test -f /etc/foo/whatever.conf.rpmsave
|
|
RUN test ! -f /usr/local/bin/fake |