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>
28 lines
918 B
Docker
28 lines
918 B
Docker
FROM i386/ubuntu
|
|
ARG package
|
|
COPY ${package} /tmp/foo.deb
|
|
RUN dpkg -i /tmp/foo.deb
|
|
RUN test -e /usr/local/bin/fake
|
|
RUN test -f /etc/foo/whatever.conf
|
|
RUN test -d /usr/share/whatever/
|
|
RUN test -d /usr/share/whatever/folder
|
|
RUN test -f /usr/share/whatever/folder/file1
|
|
RUN test -f /usr/share/whatever/folder/file2
|
|
RUN test -d /usr/share/whatever/folder/folder2
|
|
RUN test -f /usr/share/whatever/folder/folder2/file1
|
|
RUN test -f /usr/share/whatever/folder/folder2/file2
|
|
RUN test -d /usr/share/foo
|
|
RUN test -d /usr/share/whatever
|
|
RUN test -f /tmp/preinstall-proof
|
|
RUN test -f /tmp/postinstall-proof
|
|
RUN test ! -f /tmp/preremove-proof
|
|
RUN test ! -f /tmp/postremove-proof
|
|
RUN echo wat >> /etc/foo/whatever.conf
|
|
RUN dpkg -r foo
|
|
RUN test -f /etc/foo/whatever.conf
|
|
RUN test ! -f /usr/local/bin/fake
|
|
RUN test -f /tmp/preremove-proof
|
|
RUN test -f /tmp/postremove-proof
|
|
RUN test ! -d /usr/share/foo
|
|
RUN test ! -d /usr/share/whatever
|