1
1
Fork 0
mirror of https://github.com/goreleaser/nfpm synced 2024-04-30 12:05:11 +02:00
nfpm/testdata/acceptance/deb.changelog.dockerfile
Dj Gilcrease c4ae30d749
feat: try to clean up and simplify the file adding interface (#255)
* 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>
2020-12-15 13:47:00 -03:00

15 lines
539 B
Docker

FROM ubuntu
ARG package
# the dpkg configuration of the docker
# image filters out changelogs by default
# so we have to remove that rule
RUN rm /etc/dpkg/dpkg.cfg.d/excludes
COPY ${package} /tmp/foo.deb
RUN apt update -y
RUN apt install -y gzip
RUN dpkg -i /tmp/foo.deb
RUN zcat "/usr/share/doc/foo/changelog.gz" | grep "Carlos A Becker <pkg@carlosbecker.com>"
RUN zcat "/usr/share/doc/foo/changelog.gz" | grep "note 1"
RUN zcat "/usr/share/doc/foo/changelog.gz" | grep "note 2"
RUN zcat "/usr/share/doc/foo/changelog.gz" | grep "note 3"